Skip to content

Instantly share code, notes, and snippets.

@planemad
Last active August 19, 2019 18:22
Show Gist options
  • Save planemad/716fd648564ca083921a to your computer and use it in GitHub Desktop.
Save planemad/716fd648564ca083921a to your computer and use it in GitHub Desktop.

Create a simple development environment for your html/css/js projects.

Checklist

Share your code with GitHub

Testing your code

  • Websites need to be tested using a server for the JS to execute properly. From terminal run python -m SimpleHTTPServer to serve your files locally.

Publishing your site online

  • You can use GitHub Pages to serve static sites online for free. Create a special branch of your code using git checkout -b gh-pages and push the changes. Alternatively use mb-pages (public) or hey-pages (private) for a Mapbox repository.
  • Your site will be live at http://user_name.github.io/repository_name
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment