Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/anechas/express-ts-mongo-template


https://github.com/anechas/express-ts-mongo-template

Last synced: about 5 hours ago
JSON representation

Awesome Lists containing this project

README

        

# Express.js REST API template with TypeScript and MongoDB (Mongoose)

Structure is module pattern.

## Installation

```bash
$ npm install
```

## Building

```bash
$ npm run build
```

## Running

```bash
$ npm start
```

## Development

```bash
$ npm run dev
```

## Testing

```bash
$ npm test
```

## Update version

```bash
$ npm run release
```

## Commit

```bash
$ npm run commit
```

## Using Docker

```bash
$ docker build -t my-app .
$ docker run --name my-app-example --env-file ./.env -p 3000:3000 -d my-app
```

## Configuration

Create a `.env` file and configure your settings by referring to the `.env.example` file.

## Locally

```bash
$ npm i
$ npm run build && npm start
```