Skip to content

Latest commit

 

History

History
48 lines (35 loc) · 1.5 KB

readme.md

File metadata and controls

48 lines (35 loc) · 1.5 KB

Turbo Monorepo MERN

This is a monorepo project using Turbo and NestJS for building a MongoDB-powered API and a frontend web client.

Installation

  1. Clone the repository:
git clone https://github.com/RookieCol/turbo-monorepo-mern.git`
  1. Install dependencies:
cd turbo-monorepo-mern
npm install

Development

To start the development environment, run the following command:

npm run dev

This will launch Turbo in development mode and start the API server.

Building

To build the project for production, run the following command:

npm run build

This will compile the TypeScript code and generate the necessary build artifacts.

Starting the API

To start the API server in production mode, run the following command:

npm run start

Project Structure

  • The apps folder contains two sub-folders: api and webclient.
  • The api folder contains the backend API code built with NestJS. It has its own package.json, source code in the src folder, and TypeScript configuration in the tsconfig.json file.
  • The webclient folder contains the frontend web client code built with React. It also has its own package.json, source code in the src folder, and TypeScript configuration in the tsconfig.json file.
  • The root folder contains the main package.json, package lock file, and Turbo configuration file.

Please refer to the respective README files inside the api and webclient folders for more information on setting up and running each component.