Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vinodnextcoder/nodejs-typescript-express-typeorm-mysql-boilerplate

Nodejs Express +Typescript + TypeORM + MySQL boilerplate
https://github.com/vinodnextcoder/nodejs-typescript-express-typeorm-mysql-boilerplate

nodejs nodejs-express-mysql nodejs-express-typescript nodejs-express-typescript-typeorm nodejs-express-typescript-typeorm-mysql nodejs-typescript-template typeorm-mysql typescript-typeorm

Last synced: 13 days ago
JSON representation

Nodejs Express +Typescript + TypeORM + MySQL boilerplate

Awesome Lists containing this project

README

        

# Boilerplate code to get started with building RESTful API Services (Nodejs, Express, TypeORM Mysql)

```
cd existing_repo
git remote add origin
git branch -M main
git push -uf origin main
```
### Development

```bash
npm run dev
```

### Production

```bash
pm2 start ecosystem.config.js --env production
```

### Running tests

```bash
npm test
```

### Linting

```bash
npm run lint
```

### Building a container

```bash
docker build -t test/rest-api-typescript .
```

### Run docker image

```bash
docker run -p 8080:3000 -d rahulse97/rest-api-typescript
```

### Print app output
```bash
docker logs
```

### Enter the container
```bash
docker exec -it /bin/bash
```