Skip to content

SchoolSquirrel/SchoolSquirrel

Repository files navigation

SchoolSquirrel

Available on Docker Hub Production build Lint License GitHub last commit Maintenance

The main repo for SchoolSquirrel

Development

Prerequisites

For the mobile app:

API

  1. Create a MySQL Database
  2. npm i and then npm start in api folder
  3. Insert DB credentials in /app/config/config.json
  4. Restart api (Ctrl+C and npm start)

Frontend Web

  1. npm i and ng serve in SchoolSquirrel folder
  2. Open browser to http://localhost:4200
  3. The domain for the login is http://localhost:3000

Frontend Mobile

npm i and npm run mobile:android:run in SchoolSquirrel folder

Frontend Desktop

npm i and npm run web:run in SchoolSquirrel folder, then npm run desktop:run in a second terminal

Docs

pip install mkdocs-material mkdocs-exclude and mkdocs serve in docs folder

Build / Deploy

all done automatically using GitHub Actions

Docker Container

sudo bash ./build.sh in docker folder (works only on linux!)

API

npm run build in api folder

Frontend Web

npm run web:build in SchoolSquirrel folder

Frontend Mobile

npm run mobile:android:build in SchoolSquirrel folder

Frontend Desktop

npm run desktop:build in SchoolSquirrel folder

Docs

mkdocs build in docs folder

Linting

API

npm run lint in api folder

Frontend (Web, Mobile & Desktop)

npm run lint in SchoolSquirrel folder

License

MIT