The following project is an example/boilerplate using NextJs and its api, and rabbitmq, simulating the backend server with json-server
This is a NextJs
SPA website to run a local server and add some products / publish a queue on rabbitmq and consume it
To execute the example you need to have node installed on your system
With the project source code on your pc, you can execute it by going to the root folder of the project and doing the following steps:
To install the dependencies you need to execute the following command
npm i
npm run dev
https://www.cloudamqp.com/plans.html
https://hub.docker.com/_/rabbitmq
The application will be executed in http://localhost:3000 (and it will fail in case of having the port 3000 busy) and json server in http://localhost:5000 (and it will fail in case of having the port 5000 busy) and the consumer in a separate node process