Code Monkey home page Code Monkey logo

hackathonakai2022's Introduction

Backend to ChillEdu

How to install

  1. Download repo and work on the SHELL from the ChillEdu level,
  2. Initialize virtual environment in it: python -m venv env,
  3. Run that venv:
    LLINUX or MAC source env/bin/activate,
    WINDOWS google say \env\Scripts\activate.bat if it doesnt work do it cd env cd Scripts activate cd .. cd ..
  4. Install dependencies: pip install -r requirements-dev.txt,
  5. Create a new file such as .env.example and chance his name to .env
  6. Create a new secret key: python generateSecretKey.py
  7. Copy it and paste it into .env up to SECRET_KEY
    e.g. SECRET_KEY=n-9#+mf&sziujs^g1!+liv5gn@%0*)7dp)gtm^16eqyl+bvjlr
  8. (optional) Change database settings in settings.py if you want to use different (non-sqlite) db backend,
  9. Make migrations: python manage.py makemigrations,
  10. Migrate database: python manage.py migrate,
  11. Create admin: python manage.py createsuperuser,
  12. To run dev server: python manage.py runserver

Tips for devs

Dumping pip installations into the file

If you installed new pip dependency you need to allow others to know about it. To do so it is best to save all requirements in one file, which in this case in named requirements.txt. You can do this by typing following command:

pip freeze > requirements.txt

Urls

/admin --> login to superadmin panel
/api/login --> POST request about login
/api/children/registration --> POST request about children registration
/api/children/<id>/ --> GET request about children detail
/api/addcash/<id>/ --> Add cash to children by id
/api/myadmin/<id>/ --> GET request about admin detail
and a lot of more list

Hosting

The app is hosted on Heroku

  1. Superadmin credentials login: admin password: admin
  2. The app falls asleep after 30 minutes of inactivity.
  3. The app wakes up for 10 seconds.

Frontend to ChillEdu

https://github.com/Karina-00/Hackathon

hackathonakai2022's People

Contributors

patrykgrzegorek 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.