MichiasShiferaw / HotelPalace

1 stars 0 forks source link

Hotel Palace

[Online Website]()

Table of Contents

General Info

Objective is to prepare an application that will allow their customers to easily book rooms in their hotels, seeing room availability in real time.

Home Page

Technologies

Languages and Tools:

react postgresql linux bootstrap html5 express nodejs

Setup

To run this project,

Prerequisites
There are some prerequisites for this post. You need to have a NodeJS installed on your machine and some other tools that are required to complete this project.

NodeJS https://nodejs.org/en/
Express Framework https://expressjs.com/
PostgreSQL https://www.postgresql.org/ (also download the extension from VSCODE)

node-postgres https://www.npmjs.com/package/pg
VSCode
Postman https://www.postman.com/
nodemon https://nodemon.io/
dotenv https://www.npmjs.com/package/dotenv
Create React App https://reactjs.org/docs/create-a-new-react-app.html#create-react-app

Installation instructions

Open up VSCode at the root of the repository. A pop-up should prompt the user to open VSCode in a container.

Attach a terminal to the running vscode container (+ in the terminal view at the bottom right) Then run :


cd server;
npm install (only for the first time)
npm start
cd client; 
npm install (only for the first time)
npm start

Install postgres extension
Select postgres server

Highlight all in DatabasesSQL.sql
right click
run query

insertion data

highlight all
run query 

go into views
highlight 
run query

npm start on server
npm start on client

License

License