Giter Site home page Giter Site logo

sbhs_server's Introduction

SINGLE BOARD HEATER SYSTEM

INSTALLATION GUIDE

  1. Clone from the SBHS Github server :

    https://github.com/CruiseDevice/sbhs_server
  2. Create a virtual environment, using command virtualenv and activate the virtualenv. We recommend using Python 3 :

    virtualenv myenv -p python3
    source myenv/bin/activate
  3. Install necessary packages from requirements.txt using command:

    pip install -r requirements.txt
  4. Add crispy_forms to INSTALLED_APPS in settings.py
  5. Make first migrations by using the commands :

    python manage.py makemigrations
    python manage.py migrate
  6. Create superuser by using the command :

    python manage.py createsuperuser
  7. Enter the admin username and email you want, then enter the admin password.
  8. Create moderator group by using command :

    python manage.py create_moderator
  9. Update the connected boards by using command :

    python manage.py update_boards
  10. Fill in the necessary information in the file

    sbhs_server/credentials.py.

  11. In sbhs_server/settings.py, fill in the following details -
  1. Make sure the sbhs_api (https://github.com/CruiseDevice/sbhs_api) is hosted on the slave machines to which SBHS devices are connected.
  2. If SBHS devices are connected to a cluster of slave machines and/or master machine (where the Django server is hosted), enter the slave machine IPs and port (if hosted on a specific port) in the variable SBHS_API_IPS.
  1. Run the server by using the command :

    python manage.py runserver
  2. Once the server is running successfully, go to the URL http://localhost:8000

    To create a normal user, just fill the registration form and submit. You can the login with the created normal user.

    To create a moderator ::
    • First create a normal user by filling the registration form and submitting it
    • Then go to django admin by entering URL http://localhost:8000/admin
    • Login into admin by using credentials you entered while creating admin in step 6
    • Go to the profile section and click on the user you just created.
    • Tick is_moderator checkbox and click on save.
    • Exit the admin by loggin out of it.

    Now you have created a moderator account. With moderator account you can view state of all the SBHS connected, all the logs of the all the users, all the slots booked by the users, and also the profile of each SBHS.

sbhs_server's People

Contributors

cruisedevice avatar maheshgudi 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.