This setup is using Next.js for the frontend, Node.js with Express.js for the backend, and TypeScript with Yarn for package management. The project utilizes Docker for containerization and includes services like Redis, RabbitMQ, and NGINX.
- Node.js
- Yarn
- Docker
- Docker Compose v2
Create a root directory for the entire project and separate subdirectories for the frontend and backend projects.
mkdir my-platform
cd my-platform
mkdir frontend backendSet up the frontend project using Next.js and TypeScript, and the backend project using Node.js, Express.js, and TypeScript. Use Yarn as the package manager.
Detailed instructions can be found here.
Create Dockerfiles for both the frontend and backend projects.
Detailed instructions can be found here.
Create a docker-compose.yml file to manage all the services, including Redis, RabbitMQ, and NGINX. Create an nginx.conf file for the NGINX configuration.
Detailed instructions can be found here.
To start all services using Docker Compose v2, run the following command in the root directory of your project:
docker compose upThe platform will be accessible at:
- Frontend:
http://localhost - Backend:
http://localhost/api