NOTE: This repository is no longer updated, all relevant code is moved to INTEGRATION
The api repository is a REST client used by our webapp to access the information in the database.
NOTE: In the future, the integration file will deal with the api and generating the database files.
- Clone
eisvillageserver/databaseand run the copyContentData and syncBoxes function to obtain an up to date copy ofeisvsfiles.db - Copy the generated
eisvsfiles.dbinto the root of this repository - Run
pip install flask - Run
pip install flask_restful - Run
pip install sqlalchemy - Run
pip install flask-cors - Run
python api.py
Using your favourite rest client.:
Returns a list of categories of files
Returns a list of files with the category Documents
Returns a list of files with the category Images
Returns a list of files with the category Music
TODO: Returns a list of files with the category Applications
Returns a list of files with category Videos
TODO: Increase the download count of the file with UID id
The webapp repository contains the UI code involved with the village facing web application. This web application allows you to download files hosted by the village server.
- Install Ruby (https://www.ruby-lang.org/en/)
- Compile the sass into css by running
compass watchin the terminal at the root of this repository - Run
sync.pyfrom the database repository. Copy the downloaded files from the (in the boxid folder) from the database repository into the root of this repository - Copy
eisvsfiles.dbinto the api repository generated by sync.py - Run
python api.pyin the api repository to start the api server - In a new command line window run
python server.py - Navigate to
localhost:1234to view the webapp!