QuAPI is a simple, lightweight, and fast API for querying, manipulating, and analyzing data. It is designed to be used fast in development and production environments; with better DX [Developer Experience].
- Add a generator for creating new controllers
- Restrict or allow certain methods for a controller
- Add a feature for tweaking URL/routes; for example, developers can
send / to
home.index
orhome.myapp
controller. - Add a feature for tweaking the default controller
- Add a feature for tweaking paths
- Dynamic routing; /users/:id
- Add support for more databases; ORM
- Add a generator for creating new models
- Add authentication and authorization abilities; as decorators
- Add testing abilities and environment
- Git clone this repository
- Install dependencies;
pip install -r requirements.txt
- Run
./core/generate.py -c <controller_name> <action_name>
to generate a new controller - Add a
get
function [or your preferred method] in thecontrollers/<controller_name>.py
file - Add
<controller_name>
to theroutes.yaml
file - Run
make start
to start the server in the project directory; - Open your browser and go to
localhost:8080/<controller_name>/<action_name>
- Create a
index.py
file incontrollers/<controller_name>/
directory - Add a
get
function [or your preferred method] in thecontrollers/<controller_name>.py
file - Add
<controller_name>
to theroutes.yaml
file - Run
./core/server.py
to start the server in the project directory; be sure you are in the project directory - Open your browser and go to
localhost:8080/<controller_name>/
- Create a controller with its action and method; for example,
home.index
- Add
home.index
to theroutes.yaml
file; asroot: home.index
on the first line - Run
./core/server.py
to start the server in the project directory; be sure you are in the project directory - Open your browser and go to
localhost:8080/
- You can also use
/home/index
as URL
- Fork this repository
- Make changes
- Create a pull request
- Wait for review
- Merge
- Celebrate 🎉
- Repeat 🔁
BSD 3-Clause License