GithubHelp home page GithubHelp logo

arienshibani / dikuprosjekt-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tagptroll1/dikuprosjekt

0.0 0.0 0.0 2.28 MB

Dockerfile 0.36% JavaScript 10.92% HTML 58.04% CSS 1.34% Python 29.34%

dikuprosjekt-1's Introduction

Dikuprosjekt REST API - v.0.1 (Alpha Testing)

The sourcecode for http://feedback.uib.no/. Built on python, svelte and MongoDB.

Prerequisites

Local Setup:

  1. Clone this repository by running git clone https://github.com/arienshibani/dikuprosjekt in the terminal.
  2. Navigate to the root folder and run docker-compose up in a terminal to start MongoDB. Do not close this terminal!
  3. Open a 2nd terminal and navigate to dikuprosjekt/server.
  4. Run pipenv shell then pip install -r requirements.txt to setup the server dependancies.
  5. Run python main.py to start the server. Do not close this terminal!
    • The database API will run on https:localhost:5000/.
  6. Open a third terminal and navigate to dikuprosjekt/frontend/app. Run npm install.
  7. 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/.

Known Issues:

  • 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 and python 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.

dikuprosjekt-1's People

Contributors

joachimmorken avatar tagptroll1 avatar arienshibani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.