This is a starter application for a Web API server that uses node/express and a Postgres database.
- Git for working with Github source code
- Node and npm for running the web app
-
Clone this repo to your local drive.
details
- Start a terminal app, such as Terminal on OSX or the Git Bash shell on Windows.
- Create a src directory in the user's home directory and go in it
cd && mkdir src && cd src
- Clone the repository
git clone https://github.com/hackforla/node-starter
-
Change to the node-starter directory:
cd node-starter
-
Install the node server npm depedencies:
npm install
-
Obtain the
.env
file from the slack channel and place it in this directory. It contains private info (i.e., the production database connection string) that we cannot put in this public GitHub repo. -
Change to the client directory:
cd client
-
Install the client (React) dependencies:
npm install
- Run
npm start
from the node-starter directory to start the node server.