- Make sure
node
andnpm
are installed. To check:$ node -v $ npm -v
- Go to https://nodejs.org/en/download/ to download the installer.
- Go to the backend's directory.
$ cd back-end
- Install dependencies.
$ npm install
- Update
npm
if necessary.
- Update
- Run the server.
$ npm start
- Visit localhost:5000/api in Chrome. Port 5000 is where the Express server will be running on.
In another terminal, start the web server:
$ cd front-end
$ npm install
$ npm start
- To test the backend, run this command on
back-end/
:$ npm test