This project implements a solution to allow backend data internationalization. To achieve this goal, it uses MongoDB projections and aggregation framework to process the data and send it to the client in the desired language.
- The branch S1 implements the solution using the $lookup stage of the MongoDB aggregation framework
- The branch S2 implements the solution using mongoose population
With npm installed on your machine, install project dependencies running the following command:
npm i
Create a .env
file in the root of the project that holds the following variables:
PORT
: the port where the project will be running.MONGO_DB_URI
: the mongodb uri used to connect the project to a mongodb database.
npm run start:prod
The following command runs the project with hot reload enabled.
npm run start:dev