Giter Club home page Giter Club logo

notes's Introduction

Make a GitHub Pages static website for a React project

  • Have a React app in a public GitHub repo
    • In a pinch, use create_react_app to bootstrap a project
  • In the app folder, npm install gh-pages --save-dev
  • Add "homepage": "http://<username>.github.io/<repo>" as the first item in package.json
  • Add the following to the scripts section in package.json
    • "predeploy": "npm run build",
      "deploy": "gh-pages -d build"
      
  • npm run deploy

Using Visual Studio Code with Windows Subsystem for Linux

  • See dark blue.
  • code . in the directory you're working in
  • Confirm in lower-left corner that you're on the intended distro
  • Avoid using a folder mounted on /mnt/c/ as that can lead to lag
  • Disable QuickEdit mode in Options to avoid having to hit and having a suspended program
  • In VSCode, turn off file polling for .git files which causes an 'Unable to write index file' error on Github desktop. In Open Remote Settings >
"remote.WSL.fileWatcher.polling": true,
"files.watcherExclude": {
    "**/.git/**": true
}
  • Update to WSL 2 by following these instructions. If you cannot sudo apt-get update, these tips will help.
  • If the vim plugin messes with the built-in Ctrl+F search functionality, set "vim.handleKeys": { "<C-f>": false } in settings.

Python

  • Under Extensions, install the Python extension and reload VSCode
  • Ctrl + Shift + P to
    • select the Python interpreter
    • configure Python testing
    • run test discovery (can be toggled to on-save)

Rails

  • Follow the official Rails guide. If you get an error during the gem install rails phase, this post helped, although I used a later version of Ruby (3.0.0).

notes's People

Contributors

chrzhang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.