API with high performance built with FastAPI & SQLAlchemy, help to improve connection with your Backend Side to create a simple blog and Cruds with OAuth2PasswordBearer ⛏
- Python 3.8.6 or higher
- FastAPI
- Docker
# clone the repo
$ git clone https://github.com/yezz123/DogeAPI
# move to the project folder
$ cd DogeAPI- Create a virtual environment using virtualenv.
# creating virtual environment
$ virtualenv venv
# activate virtual environment
$ source venv/bin/activate
# install all dependencies
$ pip install -r requirements.txt- To run the Main we need to use uvicorn a lightning-fast ASGI server implementation, using uvloop and httptools.
# Running the application using uvicorn
$ uvicorn main:app --reloadSECRET_KEY: A secret key for signing Json Web Token.DATABASE_URL: The database url to connect to the database.ACCESS_TOKEN_EXPIRE_MINUTES: The access token expire minutes.
change all the environment variables in the
.env.sampleand don't forget to rename it to.env.
- Here for the Models.py, i create 2 tables based on the requirements for this project
blogsandusers
- We have the Dockerfile created in above section. Now, we will use the Dockerfile to create the image of the FastAPI app and then start the FastAPI app container.
- Using a preconfigured
Makefiletor run the Docker Compose:
# Pull the latest image
$ make pull
# Build the image
$ make build
# Run the container
$ make start
Includes preconfigured packages to kick start DogeAPI by just setting appropriate configuration.
yapf packages for linting and formatting
- Join the DOGEAPI Creator and Contribute to the Project if you have any enhancement or add-ons to create a good and Secure Project, Help any User to Use it in a good and simple way.
- Check all information here at docs's Folder to understand to how to contribute or to Read the Code of Conduct.
This project is licensed under the terms of the MIT license.
