Skip to content

Latest commit

 

History

History
55 lines (40 loc) · 1.64 KB

File metadata and controls

55 lines (40 loc) · 1.64 KB

Realworld Example - UtilMeta

drawing UtilMeta | Progressive meta framework for API development in Python

Installation

pip install -r requirements

Env Vars

file in conduit/config/env.py shows the env var required for this project

  • CONDUIT_PRODUCTION: optional, whether if this project is in production mode
  • CONDUIT_JWT_sECRET_KEY: required, configure the JWT secret key for this project
  • CONDUIT_DJANGO_SECRET_KEY: optional, configure Django secret key for this project

Before you run the server, please configure these env vars

Database Migration

Migrate database before run the server

cd conduit
meta migrate

Run

cd conduit
meta run -d

or

cd conduit
python main.py

OpenAPI Docs

When the server is running, view http://127.0.0.1:8000/api/ops/openapi to get the OpenAPI json docs of this project auto generated by UtilMeta

Tutorials

There is a tutorial to build this project step by step, you can find it in