https://github.com/mongodb-developer/getting-started-deno-mongodb
Deno 2.0 CRUD (Create, Read, Update, Delete) application with MongoDB
https://github.com/mongodb-developer/getting-started-deno-mongodb
crud crud-api crud-application deno mongodb mongodb-atlas
Last synced: 3 months ago
JSON representation
Deno 2.0 CRUD (Create, Read, Update, Delete) application with MongoDB
- Host: GitHub
- URL: https://github.com/mongodb-developer/getting-started-deno-mongodb
- Owner: mongodb-developer
- License: apache-2.0
- Created: 2022-01-26T21:42:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-22T19:21:21.000Z (8 months ago)
- Last Synced: 2025-03-22T14:02:18.594Z (3 months ago)
- Topics: crud, crud-api, crud-application, deno, mongodb, mongodb-atlas
- Language: TypeScript
- Homepage:
- Size: 12.7 KB
- Stars: 4
- Watchers: 5
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Deno 2.0 & MongoDB CRUD Application
This repository contains a simple CRUD (Create, Read, Update, Delete) application built with Deno 2.0 and MongoDB. It demonstrates how to set up a basic HTTP server with routing capabilities and interact with a MongoDB database using the official MongoDB driver.
## Resources
- [Written Tutorial](https://www.mongodb.com/developer/languages/javascript/getting-started-deno-mongodb/)
- [Video Tutorial](https://www.youtube.com/watch?v=p541Je4J_ws)## Prerequisites
- Basic TypeScript knowledge
- Understanding of MongoDB concepts
- Familiarity with RESTful APIs
- [Deno 2.0](https://deno.land/#installation) installed
- [MongoDB Atlas](https://www.mongodb.com/cloud/atlas/register) account (or a local MongoDB instance)## Setup
1. Clone this repository:
```bash
git clone https://github.com/mongodb-developer/getting-started-deno-mongodb.git
cd getting-started-deno-mongodb
```2. Create a `.env` file in the root directory with your MongoDB connection string:
```
MONGODB_URI="your_mongodb_connection_string"
DB_NAME="todo_db"
```## Running the Application
Start the server with the following command:
```bash
deno -ERNS --env server.ts
```## Accessing the API
You can access the API at `http://localhost:3000`.
## License
This project is licensed under the Apache License, Version 2.0. See the [LICENSE](LICENSE) file for details.
## Contributing
We welcome contributions to this repository. If you find a bug or have an idea for an improvement, please open an issue or submit a pull request.