8000 GitHub - tuminguyen/PWP
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

tuminguyen/PWP

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

68 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWP SPRING 2022

BYC - Book Your Court

BYCHomepage

Group information

Setup

Install required packages

You can install the required packages inside your Anaconda or any virtual environments or even directly on your machine using pip command

# Python version: 3.7.6
pip install -r requirements.txt 

Run and Test

Run

  1. Open terminal / command prompt

  2. Clone the project

    git clone https://github.com/tuminguyen/PWP
    

    or directly download the deliverable5 package.

  3. By default, the scripts are executable. However, in case of needed, you can make them doable by running the command

    # On Linux
    chmod +x run.sh
    chmod +x delete_db.sh
    

    For Windows users, follow this tuitorial to change the permission to the files.

  4. If db/ folder does not exist in the project, create the new one before running the program. Otherwise, skip this step.

    mkdir db
    
  5. Run the program

    Please populate the database ONCE at the first time you run the program.

    # On Linux
    ./run.sh -p true
    

    For the next time you run the program, run it with the populate mode set to false. Otherwise, data might be duplicated and violate the UNIQUE constraint.

    # On Linux
    ./run.sh -p false
    
  6. Open your browser and access 127.0.0.1:5000

  7. Delete all tables and database whenever you want by executing

    # On Linux
    ./delete_db.sh
    

!! NOTE: The instruction is written for users with Linux-based systems. However, if you are a Windows users, you can also follow the same commands after installing cygwin or git-bash.

Test

There are test files for resources and models. To run the tests, use the below command

# On Linux / Windows
pytest

After running, you will see the number of passed cases, warning and test coverage value.


Useful links

Online APIs documentation

About

No description or website provided.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 40.4%
  • HTML 31.5%
  • CSS 26.7%
  • Other 1.4%
0