A quickstart tool for creating a FastAPI project with a NextJS frontend.
Project description
Create API App Quickstart Tool
Welcome to the quickstart tool for creating a FastAPI
project with a NextJS
frontend.
This tool is intended to be dynamic and installs the most recent packages where possible, while maintaining compatibility across the main OS's (Mac, Linux and Windows). You can use the tool by installing the PIP
package. See the Using The Tool section for more details.
If there are any issues using the tool, please flag them in the issues section of this repository.
Found on:
Why This Tool?
Creating a project from scratch can be a tedious process. Not only do you have to create all the files yourself, it typically requires a lot of small minor changes that can easily be automated. So, rather than wasting a lot of time setting up projects, I created a tool that does it all for me!
I use this tool personally for SaaS
and ML API
projects and have found it extremely useful for immediately diving into coding without faffing around with setup details (except for configuring API keys). Hopefully, it's useful to you too!
The Stack
All projects are created using the same stack, consisting of the following:
-
Backend
-
Frontend
Note: all libraries and packages are automatically installed to their latest versions when running the tool.
Useful Styling Options
Using The Tool
-
Firstly, install Docker, we use this to create the frontend files dynamically using the Build NextJS App Tool.
-
Install the package through
PIP
using the following command (requiresPython 3.12
minimum):pip install create_api_app
-
Create a project with the following command:
create-api-app <project_name>
And that's it! You'll find two folders in your project, one called frontend
(for NextJS) and another called backend
(for FastAPI).
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for create_api_app-2.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0aa6b33a3a7080342510f39beb8ff4b9b575be6fddaf9ca076f8021a89ea496 |
|
MD5 | 3a5ecd2d263a0a9f3363c05fecc12047 |
|
BLAKE2b-256 | c92b933f8330c6f309ce2710daf1d669d9f2b72a09788ef277e775b162b055bf |