Skip to content

chucktee/rsi-class-server

Repository files navigation

Richwood Scientific Bootcamp Class Project Web+API

Build Status NSP Status npm version License: CC BY 4.0

Server for our class fictional company. We will be adding an API to our backend database, Postgres.

Prerequisites

  1. Install Node.js
  1. Install Postgres from https://www.postgresql.org

  2. Install pgAdmin from https://www.pgadmin.org

  3. Download or Clone the repository into a project folder.

  4. From a command line / terminal, cd into the project folder.

  5. Install dependencies

    npm install

Running the app

We have 2 separate node apps in this setup. One is our web server, and the other will act as an API server that will be accessible to our own web pages, mobile apps and external customers who may want access to our data.

NOTE: When running the web_server.js, you will need admin / root privlidges due to the port number being 80.

  1. From a command line / terminal, cd into the project folder then run the web server with:

    node web_server.js
  2. From a seperate command line / terminal, cd into the project folder then run the api server with:

    node api_server.js
  3. Open a browser and go to http://localhost for the default home page (we are working on that) or http://localhost/admin for the administrator pages.

About

Server for our class fictional company

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published