If you want to use this project with the provided database, follow this steps.
First you have do create a database named "resto". You can do it manually with to command below (adjust with you own information);
psql -U postgresCREATE USER you-user LOGIN PASSWORD 'your-password';CREATE DATABASE resto OWNER your-user;Copy / Past the .env.example file and rename it .env Then, inside modify the different PG variables with your own data
PORT=3000
PGHOST='host'
PGUSER='POSTGRES USER'
PGDATABASE='resto'
PGPASSWORD='PASSWORD'
PGPORT= POSTGRES PORT
API_DOCUMENTATION_ROUTE=/docs
CORS_DOMAINS=Copy / Past the sqitch.conf.example file and rename it sqitch.conf Then, inside modify it like that :
[core]
engine = pg
top_dir = migrations
# plan_file = migrations/sqitch.plan
[engine "pg"]
target = db:pg:resto
# registry = sqitch
# client = psqlRun the following command to install dependencies
npm installNow we are ready to create all tables and add some entries inside. Make sure to be into root folder of the app and run this command
npm run resetDBNow you can follow instruction on readme.md directly on "add routes" section.