This is the template code that you will need to use as a starting point for your coursework.
You should make sure you are accessing Codio using a standards-compliant web browser such as Google Chrome or Chromium.
All the core packages have already been installed so all you need to do to get your server running is to open the terminal from the Tools menu (if it is not already open) and run the following command:
$ node index.js
This will start your web server. To view your website click on the dropdown list labelled Live Site at the top of the Codio window and choose the New browser tab option. This will open your website in a new tab.
To make life easier you can split your editor window both horizontally and/or vertically so you can see both the code and the terminal. Use the View > Panels and View > Layout menus.
As part of the assignment you are expected to make regular commits to your git repository. Follow this step by step guide:
Before you make any commits you need to update the local config settings. Start by using the Terminal (or Git Bash on Windows) navigate inside the project. Once you are in this directory run the following commands, substituting you name as it appears on your ID badge and your university email address (without the uni.
domain prefix).
git config user.name 'John Doe'
git config user.email 'doej@coventry.ac.uk'
git config core.hooksPath .githooks
git config --add merge.ff false
- Log onto the University GitHub server using your University username and password.
- Your assignment brief will give you the organisation url, this will take you to the module page on GitHub.
- Create a new repository using the green New button:
- The name of the repository should be your university username, eg.
doej
. If you are taking the resit add the-resit
suffix, eg.doej-resit
. - The description should be the topic you were assigned (eg. Customer Relationship Manager).
- The repository should be private.
- The name of the repository should be your university username, eg.
- Now follow the instructions git provides under the heading create a new repository on the command line.
- Don't run the first
echo
command as this will delete these instructions!
- Don't run the first