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

https://github.com/amisadmin/fastapi-amis-admin-demo

An example fastapi-amis-admin application
https://github.com/amisadmin/fastapi-amis-admin-demo

amis-admin fastapi-admin fastapi-amis-admin sqlalchemy sqlmodel

Last synced: 27 days ago
JSON representation

An example fastapi-amis-admin application

Awesome Lists containing this project

README

        

# FastAPI-Amis-Admin-Demo

- [`FastAPI-Amis-Admin-Demo`](https://github.com/amisadmin/fastapi_amis_admin_demo): An example `FastAPI-Amis-Admin` application.
- [`FastAPI-User-Auth-Demo`](https://github.com/amisadmin/fastapi_user_auth_demo): An example `FastAPI-User-Auth` application.

## Develop

### Install command line extension

`pip install fastapi_amis_admin[cli]`

### How to start

1. create your app using `faa new app_name` .
2. writing your apps under `fastapi_amis_admin_demo/backend/apps` folder.
3. run your server using `faa run` .

### Documentation

See [Docs](https://docs.amis.work/)

## Deploy

### Install and run:

```shell
cd fastapi_amis_admin_demo
# Install pdm(https://pdm.fming.dev/) first
pip install --user pdm
# Install dependencies
pdm install
# Run server
pdm run run
```

## Demo

You can check a online demo [here](http://demo.amis.work/).

### Preview

Open `http://127.0.0.1:8000/admin/` in your browser:
![ModelAdmin](https://s2.loli.net/2022/03/20/ItgFYGUONm1jCz5.png)

Open `http://127.0.0.1:8000/admin/docs` in your browser:
![Docs](https://s2.loli.net/2022/03/20/1GcCiPdmXayxrbH.png)