Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ypankaj007/node-ts-express-mongo
Typescript nodejs mongo starter project
https://github.com/ypankaj007/node-ts-express-mongo
express mongodb nodejs rest-api typescript
Last synced: 2 days ago
JSON representation
Typescript nodejs mongo starter project
- Host: GitHub
- URL: https://github.com/ypankaj007/node-ts-express-mongo
- Owner: ypankaj007
- License: mit
- Created: 2019-03-14T10:35:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2024-04-23T04:26:39.000Z (9 months ago)
- Last Synced: 2024-04-23T07:12:49.086Z (9 months ago)
- Topics: express, mongodb, nodejs, rest-api, typescript
- Language: TypeScript
- Homepage:
- Size: 25.4 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
#### Node-TS-express-mongodb-API
## Running the API
### Development
To start the application in development mode, run:```bash
npm install -g nodemon
npm install -g ts-node
npm install -g typescript
npm install
```Start the application in dev env:
```
nodemon
```
Start the application in production env:Install ts pm2 and typescript compiler:
```
npm install -g pm2
pm2 install typescript
```example start with scale on 2 core:
```
pm2 start ./src/index.ts -i 1 \
&& sleep 1 \
&& pm2 scale index 2 --no-daemon
```Express server listening on http://localhost:3000/, in development mode