mirror of
https://github.com/vkaelin/LeagueStats.git
synced 2026-03-25 12:57:28 +00:00
28 lines
461 B
Markdown
28 lines
461 B
Markdown
# Adonis API application
|
|
|
|
This is the boilerplate for creating an API server in AdonisJs, it comes pre-configured with.
|
|
|
|
1. Bodyparser
|
|
2. Authentication
|
|
3. CORS
|
|
4. Lucid ORM
|
|
5. Migrations and seeds
|
|
|
|
## Setup
|
|
|
|
Use the adonis command to install the blueprint
|
|
|
|
```bash
|
|
adonis new yardstick --api-only
|
|
```
|
|
|
|
or manually clone the repo and then run `npm install`.
|
|
|
|
|
|
### Migrations
|
|
|
|
Run the following command to run startup migrations.
|
|
|
|
```js
|
|
adonis migration:run
|
|
```
|