This is a course workspace for Express API with Postgres and Jest
- Use Node v16
- Install packages
npm install
- Start project
npm start
- Try
http://localhost:6065to test the root route
- Access
flyway/postgre/migrations/config/flyway-config.conf - Update following comment in this file
- For
flyway.locationsyou can right click onsqlfolder -> Copy Path and replace {yourPath}
flyway.locations=filesystem:{yourPath}
- Connect to default DB
postgres - Execute the SQL query
CREATE DATABASE adminDB;
- For Linux
wget -qO- https://repo1.maven.org/maven2/org/flywaydb/flyway-commandline/9.10.2/flyway-commandline-9.10.2-linux-x64.tar.gz | tar xvz && sudo ln -s `pwd`/flyway-9.10.2/flyway /usr/local/bin
- For macOS
brew install flyway
sudo flyway -configFiles=./flyway/postgre/migrations/config/flyway-config.conf migrate