Skip to content

JeffKersting/chatterBox-api

Repository files navigation

ChatterBox API.

ChatterBox is an app that keeps you and your friends in touch. Login with your name and enter the room where you can send messages that are instantly updated on your screen every time a message is sent.

CHAT IN USE

Front-end repository

SETUP

1. Getting started with Postgres (skip this step if you already have postgres on your machine)

Run the following commands in terminal.

brew install postgresql
brew services start postgresql
psql postgres
CREATE ROLE <username>
ALTER ROLE <username> CREATEDB
\q
psql -d postgres -U <username>
CREATE DATABASE chatterbox;`

2. Create the chatterbox database (Skip this step if you have completed step one)

If postgres is not running, either start using the Postgres GUI (recommended), or run the following in terminal:

  pg_ctl -D /usr/local/var/postgres start

Next, create the database

  CREATE DATABASE chatterbox;

3. Clone this repository.

cd chatterBox-api

npm install

4. Initializing and run the database.

Run the following commands in terminal.

knex migrate:latest
knex seed:run
nodemon index

Now you should be ready to access the site on the frontend! Find the frontend repo here.

Technologies Used

  • Express
  • Postgres
  • Knex
  • Socket.io
  • CORS
  • Nodemon

Contributing

Max Bregman GH Jeff Kersting GH
Mr. Bregman Mr.Kersting

For additional information about this project, please refer to the front-end repository:

Front-end repository

License MIT

About

chatterBox backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •