Skip to content

jeremycote/eHotel

Repository files navigation

eHotel

Getting Started

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

SQL

All SQL queries are found in the migrations folder.