This project are using react, express, postgre.
Create a .env under server directory and copy the content in the .env.template to it.
Replace '{someusername}:{somepassword}' by your own psql username and password.
e.g SESSION_SECRET=ABCDEF$123 DATABASE_URL=postgres://postgres:123456@localhost:5432/postgres
1.Go to server/sql/pgsqlSetup directory run psql postgre and then run \i ./setup.sql; to create tables, function, triggers and seed data NOTE:existing database tables might be dropped.
2.Go to client directory, RUN npm install
to install all the packages and dependencies for client.
3.Go to server directory, RUN npm install
to install all the packages and dependencies for server.
Go to the server directory:
Runs the server
Runs the client openhttp://localhost:3000 to view it in the browser.
Runs the server using nodemon
username: fds password: 123456
username: Douglas password: 123456
username: Shirley password: 123456
username: Jackeline password: 123456
username: Taylor password: 111111
All restaurant default are set to default
NOTE: username are case sensitive