fix README
This commit is contained in:
parent
65f62b75c0
commit
290b018ab9
1 changed files with 20 additions and 1 deletions
21
README.md
21
README.md
|
@ -30,7 +30,7 @@ This is an ORM starter application for [Angel3 framework](https://angel3-framewo
|
||||||
5. Run the migration to generate `migrations` and `greetings` tables in the database.
|
5. Run the migration to generate `migrations` and `greetings` tables in the database.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dart bin/migration.dart
|
dart bin/migrate.dart up
|
||||||
```
|
```
|
||||||
|
|
||||||
### Development
|
### Development
|
||||||
|
@ -43,6 +43,25 @@ This is an ORM starter application for [Angel3 framework](https://angel3-framewo
|
||||||
|
|
||||||
2. Modify the code and watch the changes applied to the application
|
2. Modify the code and watch the changes applied to the application
|
||||||
|
|
||||||
|
|
||||||
|
3. Insert a message into DB:
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -H "Content-Type: application/json" -X POST -d '{"message":"OK_Message" }' "http://localhost:3000/greetings/"
|
||||||
|
```
|
||||||
|
|
||||||
|
or
|
||||||
|
|
||||||
|
```
|
||||||
|
curl -X POST -d 'message=OK_Message2' "http://localhost:3000/greetings/"
|
||||||
|
```
|
||||||
|
|
||||||
|
4. Query DB:
|
||||||
|
|
||||||
|
```
|
||||||
|
http://localhost:3000/greetings/
|
||||||
|
```
|
||||||
|
|
||||||
### Production
|
### Production
|
||||||
|
|
||||||
1. Run the following command:
|
1. Run the following command:
|
||||||
|
|
Loading…
Reference in a new issue