Cabby is a Travel website.
Pivotal Tracker Project link - https://www.pivotaltracker.com/n/projects/2435464
It will install the packages required
npm install
This will start your database before that make sure you have PostreSQL Database installed
brew services start postgresql
Initaillize Sequelize
sequelize init
create database
createdb @DBNAME
create model
sequelize model:create --name @tablename --attributes title:string, price:string, description:string
create table
sequelize db:migrate OR If it throws error Use : npm run sequelize
- Install Docker on your machine
- Clone the repository
- Copy the file .env.sample then rename it to .env.
- In the
.env file
Set database host asdb
- Set the following
POSTGRES_USER=your_db_user_name
-POSTGRES_PASSWORD=User_PASSWORD
-POSTGRES_DB=POSTGRES_DB
- Run
docker-compose up
To run the application with docker - wait to see the message
Listening on port 3000.......