Code Monkey home page Code Monkey logo

website's Introduction

RPIForge/website

The Forge's website - tracks machine usage and calculates charges for members.

To install the app, you must have a working Python 3.7.x installation and PostgreSQL.

Required Python libraries:

  • psycopg2
  • argon2-cffi
  • django

Recommended:

  • bcrypt

The app currently expects a database user postgresql@localhost:5432 with password password. This behavior will be changed shortly to use environment variables to store database credentials. The program also currently expects a forge_devel database to have already been created. These settings can be found in forge/settings.py.

Before running the app for the first time, you should set up the database through Django. You can do this by running:

- python manage.py makemigrations
- python manage.py migrate
- python manage.py create_superuser

Note that create_superuser creates a user admin with password password for development. Don't do this in prod.

Afterwards, you can run the app by simply typing:

- python manage.py runserver

The site will be accessible at localhost:8000 (unless you specify another port as an argument to runserver). To access the Django admin panel, point your browser to localhost:8000/admin. To access the site, go to localhost:8000/machine_usage/. This behavior will soon change to hosting the site at the site root.

website's People

Contributors

wave100 avatar michael-comstock avatar samspre 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.