Skip to content

Latest commit

 

History

History
90 lines (65 loc) · 1.5 KB

README.md

File metadata and controls

90 lines (65 loc) · 1.5 KB

Chasing Unicorns and Vampires in a Library

Only available in German: Report on the project is available here. The original slides are available here.

Installation

This application contains 2 parts, one is the Flask server which will serve the http calls and the angular application. The second part is the Angular 2 (Version 6 at this point) which will provide the frontend for this project. To get the Application running follow the steps belowe.

Download the Repository

git clone [email protected]:CouchCat/imi-unicorns.git

and go into the Application Folder

cd imi-unicorns

Database

To restore or create the Database excute the command:

mongorestore -d unicorns ./UnicornsDB/unicorns

Angular 2 (Web application)

Go into the Application Folder:

cd WebApp

and install all dependencies

npm install

for development run:

npm start

for test purposes build the application once with:

npm run build

for production builds, minified and uglyfied:

npm run prod

Python Flask (Server)

Next go back into the root directory

cd Server

create a Python virtual environment

python -m venv .

and install the dependencies of python with:

pip install -r requirements.txt

export the flask application to a enviroment variable:

export FLASK_APP=app/__init__.py

and run the server with:

flask run

the server will be available on:

localhost:5000