-
Notifications
You must be signed in to change notification settings - Fork 18
Getting Started
James edited this page Oct 8, 2020
·
12 revisions
These instructions are to help you get set up locally.
You must have Node.js installed on your machine and be able to use npm
. To install the Node dependencies, here are the instructions:
- Fork/Clone the repository.
- Run
cd numbers_api
to get into the home directory of the repository. - Run
npm install
to install the Node dependencies. - Run
touch secrets.js
and let this file be blank for now. This is needed because in /app.js on line 16, secrets is being imported but no file exists. This is to prevent errors when starting the server.
- In the home directory of the repo, run
npm run scss
to generate the CSS for the front end. - Do not commit the .scssc files to git.
If you have nodemon installed(highly preferred), run nodemon
. Otherwise, follow the instructions below.
To get get the API server started, here are the instructions:
- Run
npm start
to run the start script. This will start the Node/Express server in the background. In other words, your terminal window will close, but the server will still run in the background. - Visit http://localhost:8124/ . The site may run with warnings in the terminal in the background, and these may be ignored for now.
- To stop the server, run
npm stop
. This runs the stop script to stop the server running in the background.