afstudeerprojecten / FeedbackAI-Tool

repo from alec
0 stars 0 forks source link

FeedbackAI Tool Frontend

Overview

The FeedbackAI Tool Frontend is a web application designed to assist teachers in providing feedback on student assignments using OpenAI's API. The system allows teachers to create template solutions, manage courses, and review student submissions.

Features

Technologies Used

Configuration

READ THIS PLEASE!!!

We're using environment variables to configure stuff. You're expected to create a .env file in the root of the project and set this variable.

VITE_BACKEND_URL=http://localhost:8080

A full example is provided in example.env.

THIS IS A BREAKING CHANGE! It wasn't like this before!

Developer notice

By default, environment variables that are undefined should default to CONFIG_<VARIABLE_NAME>. This is important for deploying using Docker. You can use this snippet as a reference:

const API_URL = import.meta.env.VITE_BACKEND_URL ?? "CONFIG_BACKEND_URL";  
             // This is to get the env var       if null, return CONFIG_BACKEND_URL

Running the project

In Docker

docker build . -t feedbackai-frontend
docker run -e CONFIG_BACKEND_URL='http://localhost:8080' -p 3000:80 feedbackai-frontend