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

https://github.com/thomaschaaf/serverless-mikro-orm-example-app

Mikro-ORM (v4) example project with serverless and typescript.
https://github.com/thomaschaaf/serverless-mikro-orm-example-app

example-app mikro-orm serverless

Last synced: 10 months ago
JSON representation

Mikro-ORM (v4) example project with serverless and typescript.

Awesome Lists containing this project

README

          

# serverless-mikro-orm-example-app

1. Install dependencies via `npm install`
2. Run `docker-compose up -d` to start mysql
3. Create DB schema via `npm run schema`
4. Run via `npm run dev`
5. Example API is running on localhost:3000

Available routes:

```
GET /author finds all authors
```

```
GET /book finds all books
```

Coming soon:

```
GET /author/:id finds author by id
POST /author creates new author
PUT /author/:id updates author by id
```

```
GET /book/:id finds book by id
POST /book creates new book
PUT /book/:id updates book by id
```