Skip to content
James edited this page Oct 8, 2020 · 12 revisions

Getting Started **WIP**

These instructions are to help you get set up locally.

dependencies and installation

You must have Node.js installed on your machine and be able to use npm. To install the Node dependencies, here are the instructions:

  1. Fork/Clone the repository.
  2. Run cd numbers_api to get into the home directory of the repository.
  3. Run npm install to install the Node dependencies.
  4. 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.

Compiling the CSS

  1. In the home directory of the repo, run npm run scss to generate the CSS for the front end.
  2. Do not commit the .scssc files to git.

starting/stopping the server

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:

  1. 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.
  2. Visit http://localhost:8124/ . The site may run with warnings in the terminal in the background, and these may be ignored for now.
  3. To stop the server, run npm stop. This runs the stop script to stop the server running in the background.
Clone this wiki locally