- Install npm
npm install npm@latest -g
- Install nodemon
npm install -g nodemon
- Fork and clone your forked repo
$ git remote add upstream git@github.com:karolina-benitez/message_passer.git
- Run npm install to get all the necessary dependencies:
$ cd server
$ npm install
- Start server
$ npm start
if error occurs, make sure you correctly installed nodemon
- Install Postgres
$ brew install postgres
$ brew services start postgresql
$ psql postgres
$ CREATE DATABASE messagepasserdb;
$ \c messagepasserdb
$ CREATE TABLE messages(
id serial PRIMARY KEY,
messageBody VARCHAR (1000) NOT NULL,
messageURL VARCHAR (1000) NOT NULL
);
- run npm install to get all the necessary dependencies:
$ cd client
$ npm install
- Start server
$ npm start