LLM Homework, a platform for teachers and students to properly use large language models for homework and assignments.
LLM Homework
: The name of the projectllm-homework
: The name of the repository, the yarn package workspace, and the root folderllmhomework
: The name of the SQL database
-
frontend
: Frontend source code repositorybuild
: Contains compiled static web page filesconfig
: Some specifications for jest and webpacknode_modules
: All package files (If any)public
: Static web page generation templatescripts
: Used for debuggingsrc
: Core, React code repository, containing all core source filesassets
: Some non-JSX filescommon
: Layout files, etc.hooks
: React Router relatedmodels
: Redux model filespages
: All frontend pagesrouter
: Used for indexing and navigation between pages
-
backend
: Backend source code repositorycore
: Backend core codeapis
: Flask-RESTful backend routesmodels
: Flask-SQLAlchemy model filestemplates
: HTML templates to send the email
-
database
: database related files -
README.md
: Project README file in Markdown format -
README.pdf
: Project README file in PDF format
Made with React, package manager configuration is required to build and run.
The compiled static files was placed on the folder ./src/frontend/build
, and you just need to put the content of the build
folder in the root directory into the XAMPP website directory, and access it via a browser.
By default, the siteUrl and the apiBaseUrl are changed to http://localhost:3000
and http://localhost:8000/api/v1
.
In src/frontend/src/assets/js/config.js
.
const siteName = 'LLM Homework';
const siteUrl = 'http://localhost:3000';
const siteDescription =
'LLM Homework, a platform for teachers and students to properly use large language models for homework and assignments.';
const apiBaseUrl = 'http://localhost:8000/api/v1';
export { siteName, siteUrl, siteDescription, apiBaseUrl };
You can change the address of the API server used by the frontend.
You should install NodeJS and yarn(optional) to run it via development environment.
How to install NodeJS: https://nodejs.dev/en/learn/how-to-install-nodejs/
cd frontend
npm install
npm start
or
cd frontend
yarn install
yarn start
Visit here then. (http://localhost:3000/)
cd frontend
yarn install
yarn build
Written in Python, but some packages need to be installed in advance.
cd src/backend
pip3 install -r requirements.txt
python run.py
If any packages are still missing, just install it manually.
And you can visit here then to view all the APIs. (http://localhost:8000/)