Skip to content

FireflyArtsCollective/volunteer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

volunteer

A Website to Manage Volunteering

Setup

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

Adding Packages/Dependencies

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.

Project Layout

Apps

Django projects are divided into "apps", each representing a discrete part of the project.

Current proposal:

  • users
  • schedule

Deploying

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.

Danimal Notes on Setting up OpenShift

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?

About

A Website to Manage Volunteering

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages