Skip to content

cdutsov/tdcr_analysis-v2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

97 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tdcr_analysis-v2

  1. If using mysql as a database, login as a root like:
mysql -u root -p
CREATE DATABASE <database-name>;
quit;

Set DATABASE_URL as environmental variable. DATABASE_URL should have the following format:

DATABASE_URL=mysql+pymysql://<database-name>:<database-password>@localhost/<database-name>
  1. Create virtual environment
virtualenv -p python3 flask
  1. Enter virtual environment
 . flask/bin/activate
  1. Install requirements
pip install -r requirements.txt
pip install pymysql
  1. Create databse and make first migration (on the last line in the file init.py in the app/ folder delete views module, fix pending)
python manage.py db init
pyhton manage.py db migrate
python manage.py db upgrade

return views module in init.py

  1. Using create_user.py script create users like:
python create_user.py <username> <password>
  1. Start apache or whatever server

  2. Enjoy :)

About

A tool for the nanoTDCR counter

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages