This is a project that is mainly built for the #APISecurityHackathon. We are also looking forward to building more sub applications on it.
The project for the hackathon challenge will be mainly focussed on Authentication, Authorization, Reporting customer feedback (Notification, Enquiry) and Investment section(APIs). For the sake of the hackathon, we will not be using any third party databse. We will be taking advantage of the Database provided by Django (Sqlite).
Ensure you have Vscode
or Pycharm
installed on your machine.
Also ensure you have pip
installed. This is a package installer for python.
create a subdirectory for the project, and move into the directory either on pycharm or vscode.
Create a virtual environment by running :
For windows: venv/scripts/activate
For Mac : source venv/bin/activate
Once the above is installed and done, You set for the project.
To run Pigybank project on your machine:
- Initialize your directory with git by running :
git init
- create a branch for the project by running :
git branch -m <you branch name>
. This can be optional if you want solve some issues - Clone this repository by running :
git clone https://github.com/Isreal-ogbu/pigybank
- To install packages and dependencies, run:
pip install -r requirements.txt
Before running projects, There are some environmental variables that you will need to set.
create a file, call it .env
. Input the below with appropriate values:
SECRET_KEY
TREBLLE_API_KEY
TREBLLE_PROJECT_ID
**Note: There are some variables in the .env file which can be set to null
.
- RAVE_PUBLIC_KEY = null
- RAVE_SECRET_KEY = null
- DEFAULT_PASSWORD = ''
We intend implementing a payment solution for the project, but we decided not to due to the complexity.
The entire end points from the user_payment
app is no more meant for the hackathon.
localhost:8000 or 127.0.0.1:8000/
- api/c/catagories/
- api/c/transactions/
- api/c/currencies/
- api/c/report/
- api/u/register/
- api/u/login/
- api/u/logout/
- api/u/verify-email/
- api/n/notification/
- api/u/set-password/ ......and lot more.
** Please note again: The user_payment
applications urls are not currently working.