This Project is named analysis_platform
and has for the start 4 apps:
accounts
: containing relevant signup, login and account views and a custom user model.macroeconomics
: containing the views and relevant urls for the macroeconomic charts on GDP ,population, GDP per capita and inflation.financials
: containing the views and relevant urls for the financial analysis charts on SCOM data.payments
: containing the business logic for payment integration with Stripe and mobile money (currently supporting only MPESA).
You can view the demo here.
View the deployed site on Digital Ocean here.
First, clone the repository to your local machine:
git clone [email protected]:am-derrick/F_n_M-Platform.git
Install the requirements:
pip install -r requirements.txt
Setup the local configurations:
The example involved assumes your environmental variables are saved in the .env.example
file. Transfer them to a file named .env
. You'll need 5 keys;
STRIPE_PUBLIC_KEY
- can be found on your Stripe Dashboard.STRIPE_SECRET_KEY
- can be found on your Stripe Dashboard.SECRET_KEY
- Djanago's production secret key.MPESA_SECRET_KEY
- can be found on your Safricom Developer Dashbaord when you create a new app.MPESA_CONSUMER_KEY
- can be found on your Safricom Developer Dashbaord.
cp .env.example .env
Create the database:
python manage.py migrate
Finally, run the development server:
python manage.py runserver
The project will be available at 127.0.0.1:8000.