A PERN PWA for hotel management. Hoteliers can manage hotel pricing, and record hotel incomes and expenses.\ Hoteliers can also record room bookings and costumer spending for ease management.
PostgreSQL
Express
React JS
Node JS
PostgreSQL v.14.2 or higher.
Node JS v14.15.4 or higher.
- Create
.env
file inside client folder based on the.env.example
file. - Create ENV files inside server folder based on the
.env.example
file. For development the name should bedevelopment.env
, for production the name should beproduction.env
and so on. - Create
.env
file inside client folder based on the.env.example
file. - For development mode,
docker-compose -f docker-compose.dev.yml up -d
from root folder. - From your server's container run
node utils/generateKeyPair.js
to generate private and public key for JWT authentication. - From your server's container run
npx sequelize-cli db:migrate
to migrate your database. - From your server's container run
npx sequelize-cli db:seed:all
to seed your database (optional).
- Create your PostgreSQL database.
- Go to the
server
folder. - Create the your
.env
file based on.env.example
. For development the name should bedevelopment.env
, for production the name should beproduction.env
and so on. - Run
npm install
. - Create your private and public key for JWT by running
node utils/generateKeyPair
. - Run the migration files with
npx sequelize-cli db:migrate
. - Run the seeder files with
npx sequelize-cli db:seed:all
(optional). - Run the server in your local with
npm run dev
.
- Go to the
client
folder. - Create the your
.env
file based on.env.example
. - Run
npm install
. - Run the client in your local with
npm start
.
Github: https://github.com/aidenraadh
Email: aidenraadhdev@gmail.com
Website: aidenraadh.com