Skip to content

compolabs/saveload_backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Charting Library Save/Load Backend

This is the tiny backend implementing Charting Library charts storage.

Requirements

Python 3x, pip, Django, Djongo

How to start

  1. Install Python 3.x and Pip. Use virtual environment if your host has older python version and it cant be upgraded.
  2. Install and initialize mongodb service.
  3. Install mongosh CLI and check avaliability of database with name 'test'. Create if it's not.
  4. Go to your charts storage folder and run pip install -r requirements.txt. You need to preinstall python3-pip package to do it.
  5. Add client.host url from env like at the connector instructions
  6. Run python3 manage.py migrate. This will create database schema without any data.
  7. Generate a secret key by running python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'
  8. Set your secret key to your environment variables export SECRET_KEY='...'
  9. Run python manage.py runserver to run TEST instance of your database. Use some other stuff (i.e., Gunicorn) for your production environment.
  10. To run the server in daemon mode use screen cli. On next step repeat command from previous step and press ctrl + a + d to detach from screen. Process will running in background.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%