Skip to content

sakib/paypark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PayPark tech asset repository. Flask App in development.

To get set up on the project:

  1. Set up virtualenv
    • run "virtualenv venv"
    • to activate run "source venv/bin/activate"
    • to deactivate run "deactivate"
  2. Use pip to install dependencies (in the virtualenv)
  3. Run "python run.py"

Database stuff:

Ubuntu: sudo apt-get install mysql-server libmysqlclient-dev Fedora: yum install python-migrate

Run the following commands:

  • "sudo mysql"
  • "create database pay;"
  • "create user 'pay'@'localhost' identified by 'pay';"
  • "grant all privileges on pay.* to 'pay'@'localhost';"
  • "flush privileges;" Quit out of mysql with "quit". Then run:
  • "./migrate.py db migrate"
  • "./migrate.py db upgrade"

To check the database subsequently, run "mysql -uice -pice" To change database structure, edit ice/models.py, then run migrate and upgrade again. If you happen to remove the migrations folder, then run init, migrate, then upgrade.

About

Back-end for ParkPay

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published