The idea is for an app that will link local farmers to investors so they can get much needed resources to expand their production. The app will work as an intermediary between investors and farmers. The app will sort for farmers, verify them and view their profiles for investors to see. The investors will have a determined rate of return for their investment.
If anything goes wrong, you can ask Jean Eric TUYISHIMIRE for further assistance.
Database
This project is pre-configured with postgres. Follow this documentation on how to get started with postgres.
After creating user(s) and database for this project, create a DATABASE URL, and add it to the DATABASE_URL in settings.ini file.
The url must be formatted as this example bellow:
postgres://user:password@host:port/db_name
For localhost, host is localhost, and default port is 5432
Clone the project
Using SSH
git clone git@github.com:zuri-training/farmvestng-be-pjt-67.gitor using HTTPS
git clone https://github.com/zuri-training/farmvestng-be-pjt-67.gitSwitch to farmvestbe branch
git checkout farmvestbeCreate virtualenv
virtualenv -p python3 venvActivate the virtualenv
source venv/bin/activateInstall requirements
pip install -r requirements.txtGenerate settings.ini file (For windows users, create the file manually):
cat settings.ini.example > settings.ini*Open settings.ini file, and fill in all necessary values.*
Migrate
python manage.py migrateRunserver
python manage.py runserverRunning tests
python manage.py testWorking with Celery
Celery is mainly used to perform background tasks which are usually not meant to be part of the request - response cycle.
Working with Celery Beat
Celery beat is used to perform periodic tasks automatically.
Deployment
Django applications can be deployed in many ways, and on many different servers. Here are some useful documentations for some popular servers.