Coder Social home page Coder Social logo

sosumi / iowaideas Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ritstudentgovernment/pawprints

0.0 1.0 0.0 10.17 MB

Student petitions application for the University of Iowa, built on RIT's PawPrints.

License: Apache License 2.0

Dockerfile 0.09% Python 28.07% HTML 58.11% JavaScript 11.90% CSS 1.83%

iowaideas's Introduction

PawPrints Build Status codecov

PawPrints Logo

About

PawPrints petition application for the RIT community.

Installation

To get PawPrints up and running, you must have Docker and Docker Compose installed on your machine.

Building Containers

Once you have Docker installed, clone the repository.

git clone https://github.com/ritstudentgovernment/PawPrints.git

Next, copy the template.env file at the root of the project to .env and fill out the environment variables. When running the application locally, the SERVER_ENV variable should be set to local. The defaults should be sufficient for running locally.

cp template.env .env

Once you have the env file, simply run docker-compose up from the root project directory. This will take a few minutes as it builds the containers.

To ensure that all the containers are running, simply run docker ps you should have an output similar to the following

CONTAINER ID        IMAGE               COMMAND                  CREATED             STATUS              PORTS                    NAMES
beaf1081ae86        pawprints_worker    "python manage.py ru…"   20 minutes ago      Up 20 minutes                                pawprints_worker_1
71a8edb3235c        pawprints_web       "sh -c 'python manag…"   20 minutes ago      Up 20 minutes       0.0.0.0:8000->8000/tcp   pawprints_web_1
4170e6d57385        postgres:alpine     "docker-entrypoint.s…"   21 minutes ago      Up 20 minutes       5432/tcp                 postgres
508ad9ed3e43        redis:alpine        "docker-entrypoint.s…"   21 minutes ago      Up 20 minutes       6379/tcp                 pawprints_redis_1

Generate mock data

If running the application for the first time, there will be no data in the database. To generate mock data, you must run the mockdata script.

Before running the script, ensure that the containers are up and grab the name of the web container. Refering to the output of docker ps above, the web container is named pawprints_web_1.

Then to run the script, docker exec -it pawprints_web_1 python manage.py mockdata. The script will take a while to run as it generates the mock data.

Finally, to view the app, simply navigate to http://localhost:8000

More Info

For more detailed information about setting up the app and other common FAQs, please visit the wiki.

Contributing

Feel free to open an issue or submit a pull request! If you have found a security issue, please do not open a public issue. Please email [email protected] and [email protected] with the issue.

iowaideas's People

Contributors

chrislemelin avatar lheigl avatar lukasyelle avatar omardlhz avatar zujko avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.