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.
- Host: GitHub
- URL: https://github.com/thomaschaaf/serverless-mikro-orm-example-app
- Owner: thomaschaaf
- License: mit
- Created: 2020-08-11T14:17:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:26:13.000Z (about 2 years ago)
- Last Synced: 2025-03-27T23:01:48.715Z (11 months ago)
- Topics: example-app, mikro-orm, serverless
- Language: TypeScript
- Homepage:
- Size: 175 KB
- Stars: 10
- Watchers: 1
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```