RC4 Internal Student Life Website
-
Install Ruby/RubyGems (for Jekyll) and nodejs/npm (for http-server, *Optional if you already have a local server).
-
Install Jekyll
gem install jekyll
- Install a static http local server (*Optional if you already have a local web server)
npm install http-server -g
-
Fork the repo and clone your own fork onto your machine.
-
Open the root directory of the repo in terminal and build the project.
cd ~/internal-services/
jekyll b --watch
- You should now see a "_site" folder being generated. (This is where the compiled site will sit.) Open the folder in another terminal tab and start your local http server.
cd _site
http-server
-
You can now view the site as http://localhost:8080 (or whichever port your prefered http server uses).
-
And thats it! Thanks to the '--watch' flag we set in jekyll earlier, every time you make any changes, your code will automatically be recompiled and you can simply refresh your browser to see your changes.
-
Once you are satisfied with your code, push/sync with your remote fork.
-
Open a pull request at your github.com forked repo page.