This can be used as a template for new projects, but the configuration is minimal.
- Nginx is listening on localhost:80
- Forwards requests to Uvicorn, which is listening on localhost:8080
- This application utilizes SQLite as its database system
The installation guide outlines steps to clone the project, build it using Docker, and start the application.
$ git clone [email protected]:keix/api-server-starter.git
$ cd api-server-starter
$ docker compose up --build
To create a user, use this command:
$ curl -X POST http://localhost/users/ -H "Content-Type: application/json" \
-d '{"email": "[email protected]", "password": "HelloWorld"}'
To retrieve the list of users, use this command:
$ curl http://localhost/users/
FastAPI automatically generates API documentation upon running.
Under the terms of the MIT License. Copyright (c) 2024 Kei Sawamura (a.k.a keix)