- Install NodeJS (V16 or greater).
- Install Yarn
npm install --global yarn
- Create a postgres database named: eHotel
- Create a copy of .env.local.example named .env.local and change the parameters to connect to your database.
- Install packages
yarn install
- Populate the database with sample data
yarn migrate:up
- Start the webserver
yarn dev
- Access the server at localhost:3000. The following users already exist:
password | |
---|---|
[email protected] | employee |
[email protected] | employee |
[email protected] | client |
[email protected] | client |
All SQL queries are found in the migrations folder.