Skip to content

3dln/microservice-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Platform

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.

Table of Contents

Requirements

  • Node.js
  • Yarn
  • Docker
  • Docker Compose v2

Setup

Project Structure

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 backend

Frontend and Backend with TypeScript and Yarn

Set 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.

Dockerfiles for Frontend and Backend

Create Dockerfiles for both the frontend and backend projects.

Detailed instructions can be found here.

Docker Compose for Services

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.

Running the Platform

To start all services using Docker Compose v2, run the following command in the root directory of your project:

docker compose up

The platform will be accessible at:

  • Frontend: http://localhost
  • Backend: http://localhost/api

About

Basic template for docker compose orchestrated micro-service includes NextJS, NodeJS, Redis, RabbitMQ, nginX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors