Add rest-api example (#889)
This commit is contained in:
21
examples/rest-api/README.md
Normal file
21
examples/rest-api/README.md
Normal file
@@ -0,0 +1,21 @@
|
||||
## Single command to rule them all,
|
||||
|
||||
```bash
|
||||
docker run -d --name embedchain -p 8000:8000 embedchain/app:rest-api-latest
|
||||
```
|
||||
|
||||
### To run the app locally,
|
||||
|
||||
```bash
|
||||
# will help reload on changes
|
||||
DEVELOPMENT=True && python -m main
|
||||
```
|
||||
|
||||
Using docker (locally),
|
||||
|
||||
```bash
|
||||
docker build -t embedchain/app:rest-api-latest .
|
||||
docker run -d --name embedchain -p 8000:8000 embedchain/app:rest-api-latest
|
||||
docker image push embedchain/app:rest-api-latest
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user