Download and install the following software:
- Node.js on Ubuntu/Windows
- Code editor
- Visual Studio Code (VSCode) (official Link)
- IntelliJ Ultimate Ubuntu/Windows
- Git on Ubuntu/ Windows
- Github Desktop on Ubuntu/Windows
- MongoDB Community Server (latest) Ubuntu/Windows. Additionally, install MongoDB Compass Ubuntu/Windows
- Postman on Ubuntu/Windows
- If you have GitHub Desktop installed
- Clone the repository by clicking the green
Code
button and thenOpen with GitHub Desktop
. - Select the location where you want to clone the repository and click the
Clone
button.
- Clone the repository by clicking the green
- Open a terminal and type the command below to clone the repository.
git clone https://github.com/shoebjoarder/expressjs-hands-on
- Open the project using a code editor.
- In VSCode, click the
Terminal
menu from the top menu and clickNew Terminal
. - Switch between branches to view the different topics. Type
git checkout <branch_name>
in the terminal to switch between the branches. Remember to replace<branch_name>
with the actual branch name, e.g.,git checkout 1-expressjs-hands-on-template
- Open the terminal and type the following command to install the node packages.
npm ci
- If you get an error, try typing the
npm install
ornpm install --force
command.
- If you get an error, try typing the
- Install
nodemon
globallynpm i -g nodemon
- Run the following command in the terminal to start the server.
npm run app