brew install openssl readline sqlite3 xz zlib
export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/opt/openssl/lib/
curl https://pyenv.run | bash
Add the following code to your ~/.bash_profile file
export PATH="$HOME/.pyenv/bin:$PATH"
eval "$(pyenv init -)"
eval "$(pyenv virtualenv-init -)"
This will load pyenv when a terminal is started
pyenv install -v 3.7.9
Here -v represents the python version. In our case it is 3.7.9.
You could install different versions using the -v option.
pyenv virtualenv 3.7.9 plateiq-3.7.9
The above command creates a virtual environment with name plateiq-3.7.9 using python version 3.7.9. You can choose a name that is preferable to you.
pyenv activate plateiq-3.7.9
Once the virtual environment that you created is activated, you can install the requirements and run the server. Once the work is completed you could deactivate your virtual environment using pyenv deactivate
Using sqlite3 for this project to keep things simple.
brew install sqlite3
- Forked and cloned this repository.
- Navigate into cloned location.
- An activated virtual environment with python version 3.7.9
pip install -r requirements.txt
python manage.py migrate
python manage.py createsuperuser
python manage.py runserver 0:8000
http://localhost:8000/admin/invoice/invoice/
https://www.getpostman.com/collections/a61edf4c3d97806da81e