Dodo Backend is the backend service for the Dodo application, which connects to MongoDB using Mongoose and provides an API to manage data. This project is developed using TypeScript and Node.js.
Node.js v20.18.0
MongoDB Atlas
-
Open your terminal and clone the repository:
git clone https://github.com/Dodo-App/dodo-backend.git
-
Change directory:
cd dodo-backend -
Install the required npm packages:
npm install
-
Set up your environment variables:
Create a
.envfile based on the.env.examplefile and fill in your MongoDB Atlas URI:cp .env.example .env
In the
.envfile, ensure that you provide your MongoDB connection string as:MONGODB_URI=<your-mongodb-atlas-connection-string> -
Run the database seed script to insert initial data:
npm run seed
-
Launch the application:
npm run dev
-
Open your browser and visit http://localhost:3000 to start interacting with the API.
To run the application in development mode with ts-node-dev:
npm run dev- Node.js v20.18.0
- TypeScript 5.6.2
- Express.js 5.0
- MongoDB Atlas
- Mongoose 8.7.0