mirror of
https://github.com/OHTU-German-learning-website/OHTU-German-learning-website.git
synced 2026-10-12 19:13:51 +03:00
6ded19a4ecb755a5aacf9f60439076329928b587
* setup db & migrations * bugfixes * README updates * updates to readme * not tracking .env.dev * README update * cleanup * updated db logic to allow for test db * remove unnecessary await --------- Co-authored-by: Jukka Kuusto <38991418+jkuusto@users.noreply.github.com>
GRADESA German Grammar Interactive Learning and Exercising Website
GRADESA is a freely accessible website where language learners at language centres as well as university students of German studies can autonomously work on their German grammar skills and knowledge.
Install
This should be all that's needed:
nodenpm- https://github.com/peterldowns/pgmigrate
- MAC: Install the newest version with
brew install peterldowns/tap/pgmigrate - Linux: # Install pgmigrate
wget https://github.com/peterldowns/pgmigrate/releases/download/v0.0.6%2Bcommit.4f90829/pgmigrate-linux-amd64 -O /usr/local/bin/pgmigratechmod +x /usr/local/bin/pgmigrate
- MAC: Install the newest version with
- Docker, either of these installation options work (if you're new to docker, I recommend Docker Desktop):
brew install docker+brew install colima(https://github.com/abiosoft/colima)- Docker Desktop
- psql:
brew install postgresql@15
Running locally
- Run PostgreSQL:
- Init .env files
./init-env.sh— This will create the required .env files for environment variables. The local db credentials are- DB_HOST=localhost
- DB_PORT=6543
- DB_USER=ohtu
- DB_PASSWORD=password
- DB_NAME=gradesa
docker-compose up -d— This command starts the services defined in the docker-compose.yml file in detached mode, meaning the services run in the background and the terminal is freed up for other tasks. For more information, checkout Docker Compose docsnpm run dev— Starts the dev server.- You can now find the NextJS app on localhost:3000
- Init .env files
Documentation
-
Migrations: check the migration README
Definition of Done
"The requirement has been analyzed, designed, programmed, tested, automated testing implemented, documented, integrated into other software, and deployed to the production environment."
Languages
JavaScript
59.2%
HTML
31.7%
CSS
5.2%
PLpgSQL
3.7%
Dockerfile
0.1%