Welcome to the Restaurant App, a demo/dummy web application which permits to the restaurant's customers to order food and developpers to show their skills ;)
The project is written in Ja
- Node.js (>= v14.16)
- Yarn (v1.x)
- Docker on your local machine. (version)
Code in /backend The main technologies used are: Node (v14), Nest.js (v7), Typescript (v4) and Postgres (v13.2). Mikro-ORM is used as an ORM.
Code in /frontend The main technologies used are: React (v17), Next.js (v10), Typescript (v4) and Tailwind (v1).
- Create and run database:
docker-compose up -d
- Install backend dependencies:
(cd backend && yarn install)
- Create database schema:
(cd backend && yarn run migration:create)
- Migrate database schema:
(cd backend && yarn run migration:up)
- Seed database with data:
(cd backend && yarn run seeds:up)
- Start backend server:
(cd backend && yarn run dev)
- Install frontend dependencies:
(cd frontend && yarn install)
- Build frontend styles:
(cd frontend && yarn run build:styles)
- Start frontend server:
(cd frontend && yarn run dev)
3000 Backend server
3001 Frontend server
5432 Postgres