The sourcecode for http://feedback.uib.no/. Built on python, svelte and MongoDB.
- Python 3.8
- Pip 20.1.1
- Docker / Docker-compose
- Node
- Install
pipenv
- Windows:
python -m pip install pipenv
- Unix:
python3 -m pip install pipenv
- Windows:
- Set environment variables for
API_KEY
andAPI_URL
in your system.
- Clone this repository by running
git clone https://github.com/arienshibani/dikuprosjekt
in the terminal. - Navigate to the root folder and run
docker-compose up
in a terminal to start MongoDB. Do not close this terminal! - Open a 2nd terminal and navigate to
dikuprosjekt/server
. - Run
pipenv shell
thenpip install -r requirements.txt
to setup the server dependancies. - Run
python main.py
to start the server. Do not close this terminal!- The database API will run on
https:localhost:5000/
.
- The database API will run on
- Open a third terminal and navigate to
dikuprosjekt/frontend/app
. Runnpm install
. - Run
npm run dev
to spin up the frontend and click around. Do not close this terminal!- The application will be hosted on
https:localhost:3000/
.
- The application will be hosted on
- If you are not using Windows 10 pro, you might experience problems with docker and hyper v. Make sure that you are using Windows 10 pro or a Unix based OS with docker.
- Make sure that
pip
andpython
are in PATH. - When setting up your environment variables, make sure that they do not have trailing slashes.
- Make sure to populate your database before trying to use the frontend application.
- Run
populate_database.py
in order to quickly fill up each chapter with test data. - To add questions or feedback and test the API visit
http://localhost:5000/apidocs
.
- Run