Create a simple development environment for your html/css/js projects.
- Install a good code editor. Pick one: Brackets (open source) or Sublime Text or Atom (by GitHub)
- Create a GitHub account and install git if not already installed
- Learn some basic command line
- Start with creating an empty Github repository with an open license like MIT.
- Clone the repository to your local machine from terminal
git clone <repository.git>
. You want to keep your repositories organised in a common place on your system, maybe~/GitHub/<repository>
- To commit all your changes
git commit -am "commit message"
and push them online usinggit push
- 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.
- 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 usemb-pages
(public) orhey-pages
(private) for a Mapbox repository. - Your site will be live at
http://user_name.github.io/repository_name