A simple API with resellers, orders, and cashbacks endpoints.
View Examples
·
Report Bug
·
Request Feature
To get a local copy up and running follow these simple steps.
This are the preqrequisites you need to install to run this project.
If you want to run this project with Docker, you will need:
-
Clone the repo
git clone https://github.com/mgiovani/reseller-cashback-api.git
-
(Optional) Import the Insomnia file at
docs/reseller-cashback-insomnia.json
to get all requests configured. -
Running locally:
- Install dependencies
make install
- Edit envvars inside the .env file
vim .env
- Load the .env file
source .env
- Migrate database
make migrate
- Create superuser
make create-superuser
- Run the code
make run
- Get your superuser JWT token at
/login/
- Install dependencies
-
Running with Docker:
- Copy env.example
cp env.example .env
- Edit credentials inside the .env file
vim .env
- Load the .env file
source .env
- Create superuser
make create-docker-superuser
- Run the code
make run-docker-mode
- Get your superuser JWT token at
/login/
- Copy env.example
Check some examples of the project:
Reseller list endpoint:
Order list endpoint:
Accumulated cashback endpoint:
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
Distributed under the MIT License. See LICENSE
for more information.
Giovani Moutinho - Linkedin
Project Link: https://github.com/mgiovani/reseller-cashback-api