Skip to content

Ayngie/The-Restaurant

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Restaurangen

Short description:

This was a group assignment in the Javascript (advanced course) at the front-end developer program at Medieinstitutet. The assignment was to build a fullstack booking app for a restaurant.

Collaborators were: Lisa Månsson Lindblom, Per Berge, Angelica Reuterswärd

Techniques used (shields/badges)

Git badge VSCode badge Vite badge ESLint badge Prettier badge HTML5 badge JavaScript badge TypeScript badge React badge React Router badge Styled Components badge Axios badge NodeJS badge Postman badge MongoDB badge Mongoose badge Express badge Nodemon badge dotenv badge GitHub badge


Git commit convention:

  • ✨ (feat): - introduces a new feature to the codebase
  • 📝 (docs): - documentation / README
  • ♻️ (refactor): - refactoring of code
  • 👷 (build): - project build-up
  • 🐛 (fix): - patches a bug in your codebase
  • 💄 (style): - css/scss styling
  • ⏪ (revert): - revert to previous code

Screenshot of project:

Demonstration of project


Run locally:

Clone the project

  git clone https://github.com/Medieinstitutet/the-restaurant-grupp5

Go to the project directory

  cd the-restaurant-grupp5

Back-end

Go to back-end directory:

  cd fed22s-backend

Install dependencies:

  npm i

Create .env file + contents:

Don't forget to create your own .env file in the root of the fed22s-backend folder, containing:

CONNECTION_STRING = <your mongoDb connection string>
PORT = 5000

Start back-end server:

  npm run dev

Front-end

Go to front-end directory

  cd..
  cd fed22s-therestaurant

Install dependencies:

  npm i

Start front-end server:

  npm run dev

Routes

Restaurant API routes are as follows:

Admin Routes

GET /api/v1/bookings/?s - Get all bookings by date
GET /api/v1/bookings/:bookingId - Get booking by id
PUT /api/v1/bookings/:bookingId - Update booking by id
DEL /api/v1/bookings/:bookingId - Delete booking by id

Booking Routes (for guests)

GET /api/v1/bookings/?s - Get all bookings by date
GET /api/v1/bookings/:bookingId - Get booking by id
POST /api/v1/bookings - Create new booking
DEL /api/v1/bookings/:bookingId - Delete booking by id

Review Assignment Due Date Open in Visual Studio Code

About

Full-stack group project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •