Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/0xerwin1/api-rest-ts
- Owner: 0xErwin1
- Created: 2021-06-05T22:51:38.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-06-07T19:31:35.000Z (over 3 years ago)
- Last Synced: 2024-12-03T22:31:57.578Z (20 days ago)
- Language: TypeScript
- Homepage:
- Size: 61.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```