Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/0xerwin1/api-rest-ts

Simple API Rest with Node.js, TypeScript, and MongoDB.
https://github.com/0xerwin1/api-rest-ts

Last synced: 10 days ago
JSON representation

Simple API Rest with Node.js, TypeScript, and MongoDB.

Awesome Lists containing this project

README

        

# API Rest with TypeScript
### Is a simple CRUD API.
Simple API Rest with Node.js, TypeScript, and MongoDB.
CRUD of users and post, stored in MongoDB.

## Technology

- Node.JS and Express with TypeScript
- MongoDB

## Environment Variables
This app needs the following environment Variables

- `MONGODB_URI` this is the Mongodb URI string
- `PORT` is the port is hosted the server. For the default is the port 3000

## Run

Install Dependencies
```shell
npm install
```
Compile TypeScript to JavaScript
```shell
npm run build
```
Run Server
```shell
npm run dev
```
Deploy to production
```shell
npm start
```