Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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 |