Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/devaungphyo/express-ts-mongo
REST api using Typescript, NodeJS, ExpressJs , Mongodb and MVC architecture. zod used for schema validation
https://github.com/devaungphyo/express-ts-mongo
express-template express-ts express-ts-boilerplate expressjs jsonwebtoken mongodb mongoose nodejs typescript zod
Last synced: about 1 month ago
JSON representation
REST api using Typescript, NodeJS, ExpressJs , Mongodb and MVC architecture. zod used for schema validation
- Host: GitHub
- URL: https://github.com/devaungphyo/express-ts-mongo
- Owner: devaungphyo
- Created: 2024-01-30T10:51:21.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-12T12:21:05.000Z (10 months ago)
- Last Synced: 2024-10-27T13:41:54.880Z (about 2 months ago)
- Topics: express-template, express-ts, express-ts-boilerplate, expressjs, jsonwebtoken, mongodb, mongoose, nodejs, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 62.5 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Features
- Get all users
- Create new user (register)
- Update user email and username
- Delete user### Prerequisites
**Node version 20.x**
### Cloning the repository
```shell
git clone https://github.com/aungpyaephyo1412/express-ts-mongo.git
```### Install packages
```shell
pnpm i
```### Setup MongoDB URL
In `.env`:
```.dotenv
PORT=*******
MONGO_URL = *****************************
API_VERSION=***********
TOKEN_SECRET = **************************
```### Start the index
```shell
pnpm dev
```## Available commands
Running commands with npm `pnpm [command]`
| command | description |
| :------ | :------------------- |
| `dev` | Starts a development |
| `build` | Build the api |