Giter Site home page Giter Site logo

latrine's Introduction

latrine

Web app for finding hygiene resources in Portland, OR

Setup

Instructions for the Team

  1. Fork and clone this project.

For Django:

  1. Django requires Python to run. Download Python3 at https://www.python.org/downloads/ or with your operating system's package manager.
  2. You may need to install pip (Python package manager) if you don't have it already. Follow pip installation.
  3. Install virtualenv with pip (pip is already installed if you're using the latest version of Python). virtualenv is a tool to create isolated Python environments.
    $ [sudo] pip install virtualenv
  4. Create and activate your virtual environment.
    $ virtualenv env --no-site-packages
    $ source env/bin/activate
  5. After you’ve created and activated a virtual environment, Navigate to the Django project directory latrine_django. Install Django and other dependences:
    $ [sudo] pip install -r requirements.txt
  6. Apply migrations:
    $ python manage.py makemigrations
    $ python manage.py migrate
  7. Apply fixtures to populate the database with sample data:
    $ python manage.py loaddata fixturefile.json
  8. Populate the database with the RefugeRestrooms public data:
    $ python manage.py get_restrooms
  9. To have access to the Django admin site, run:
    $ python manage.py createsuperuser

Follow the prompts to set up your login and password. 11. To start the development server, run: sh $ python manage.py runserver 12. Open http://localhost:8000 in your browser to view the list of available endpoints.

For React:

The React app will live in the /frontend folder and talk to Django over an API.

  1. You’ll need to have Node.js on your local development machine. The Node.js package comes with npm, the package manager for JavaScript.
  2. cd into the /frontend directory and install the existing setup:
    $ cd ./frontend
    $ npm install
  3. To start the development server, run:
    $ npm start
  4. Open http://localhost:3000 in your browser to view the app.

Deploy

Run Tests

For Django

Cd into /latrine_django and run:

$ python manage.py test

Contribute!

Check out CONTRIBUTING.md for details.

latrine's People

Contributors

eputnam avatar jastr945 avatar jonwalz avatar jrp114 avatar maryannet avatar olsonso 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.