A Website to Manage Volunteering
The required version of Python for this project is 3.7.4. It suggested that you use pyenv to juggle your python versions.
To install Python 3.7.4 with Pyenv proceed to do the following:
$ pyenv install 3.7.4
It is helpful to set python 3.7.4 as your default python. We will do that now:
$ pyenv global 3.7.4
Additionally, this project uses pipenv to manage its dependencies.
To install pipenv, perform the following:
$ pip3 install pipenv
After you've installed pipenv, go to the root of this repository and install our dependencies and enter a pipenv shell
$ pipenv install
$ pipenv shell
You will need to enter pipenv shell as you work, so next time also enter
$ pipenv shell
This project uses pipenv to manage dependencies. To add a dependency, do the following:
$ pipenv install PACKAGENAME
Where "PACKAGENAME" Is the name of the package you want to install.
Django projects are divided into "apps", each representing a discrete part of the project.
Current proposal:
- users
- schedule
This is how you deploy our application to openshift.
First you will need to log into open shift. Go to the OpenShift web console, click the name dropdown in the top right, then click "Copy Login Command". On the page it brings you to click "Display Token". Copy and paste the login!
After you have completed that step, it's time deploy the project
TODO: Actually figure out and document how to deploy.
Logged in with the login instructions in the "Deploying" section of this README.
First I needed a postgresql database. So I deployed the docker image openshift3/postgresql-92-rhel7
$ docker pull registry.access.redhat.com/openshift3/postgresql-92-rhel7
$ oc new-app openshift3/postgresql-92-rhel7
$ oc status
However if you then check the logs (using the service name from oc status
and oc logs
) you will find that it fails because it doesn't have the credentials we need.
I don't want to be balancing juggling around credentials. Perhaps there is an easier way?
I opted not to run the command to "expose to the outside world" because that sounds like a security nightmare. Hopefully our apps can still access it?