<!-- PROJECT SHIELDS -->
APIHub is a platform to dynamically serve API services on-fly. API service workers can be deployed when needed. apihub-users-users manages user and subscription for APIHub.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Explore the docs »
View Demo · Report Bug · Request Feature
[Product Name Screen Shot][product-screenshot]
Here’s a blank template to get started: To avoid retyping too much
info. Do a search and replace with your text editor for the following:
yifan
, apihub-users
, yifan2019
, email
, APIHub
,
project_description
[X] Security [X] authenticate [X] admin, manager, user [X] user management [X] rate limiter [ ] register [ ] social login [ ] Subscription [-] subscription [-] quota [X] application token [-] daily usage record in redis
To get a local copy up and running follow these simple steps.
This is an example of how to list things you need to use the software and how to install them.
Clone the repo
git clone https://github.com/yifan/apihub-users.git
Install python packages
poetry install
Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.
For more examples, please refer to theDocumentation
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch
(
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Start postgres and redis
docker compose up
Setup environment variables in a local .env file
cat >.env <<EOF DB_URI="postgresql://dbuser:dbpass@localhost:5432/test" JWT_SECRET="nosecret" REDIS="redis://localhost:6379/1" IN_REDIS="redis://localhost:6379/1" OUT_REDIS="redis://localhost:6379/1" SECURITY_TOKEN_EXPIRES_DAYS=1 SUBSCRIPTION_TOKEN_EXPIRES_DAYS=1 EOF
Run tests
poetry run test
Shutdown docker services
docker compose down
Distributed under the MIT License. See LICENSE
for more information.
Yifan Zhang - [@yifan2019](https://twitter.com/yifan2019) - yzhang@hbku.edu.qa
Copyright (C) 2021, Qatar Computing Research Institute, HBKU