https://github.com/thothom/example-mongodb
Example project for @techmmunity/symbiosis-mongodb
https://github.com/thothom/example-mongodb
Last synced: about 1 year ago
JSON representation
Example project for @techmmunity/symbiosis-mongodb
- Host: GitHub
- URL: https://github.com/thothom/example-mongodb
- Owner: thothom
- Created: 2021-11-14T17:27:04.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-05-30T13:56:07.000Z (about 4 years ago)
- Last Synced: 2025-03-06T05:15:24.593Z (over 1 year ago)
- Language: TypeScript
- Size: 56.6 KB
- Stars: 0
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README

# ThothOM MongoDB Example
[](https://github.com/techmmunity/eslint-config)
Example project of `@thothom/mongodb`.
See the docs at: [https://thothom.com/docs/plugins/mongodb](https://thothom.com/docs/plugins/mongodb)
## How to test
- Run `yarn` to install the dependencies
- Create a `.env` file based on `.env.sample`
- Add the env vars to `.env` file
- Run `yarn start` to start the app
- Done! You can start to play now :)
| Route | Method | Description |
| ------------------------------- | -------- | -------------- |
| `http://localhost:3000` | `POST` | Create |
| `http://localhost:3000` | `PUT` | Update |
| `http://localhost:3000` | `GET` | List |
| `http://localhost:3000` | `DELETE` | Delete |
| `http://localhost:3000/complex` | `PUT` | Complex Update |
| `http://localhost:3000/complex` | `GET` | Complex List |
| `http://localhost:3000/complex` | `DELETE` | Complex Delete |