OmegaMaxy / nextjs-restaurant

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Important!

This project needs to be refactored to work. Since amqplib doesn't work in the browser (as it should be used server side), we need to implement something like socket.io to instantly send requests to the server to then tell the server to communicate with the rabbitmq server.

https://stackoverflow.com/questions/44290367/can-i-use-amqplib-in-the-browser


This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying pages/index.tsx. The page auto-updates as you edit the file.

API routes can be accessed on http://localhost:3000/api/hello. This endpoint can be edited in pages/api/hello.ts.

The pages/api directory is mapped to /api/*. Files in this directory are treated as API routes instead of React pages.

About


Languages

Language:TypeScript 95.3%Language:JavaScript 4.6%Language:CSS 0.1%