The API of a toolkit to author gamified activities to support programming learning. This is part of the Erasmus+ Project entitled Framework for Gamified Programming Education (FGPE).
- Node Version Manager n
- Docker + Docker Compose
- npm
$ npm install
Copy file .env.example
and name it .env.dev
- Create .env file
cp .env.example .env
and fill-in existing env variables - Install dependencies
npm install
- Start the app
npm run start
Just run already prepared bash script:
$ ./build
It will setup the project for you (building the Docker images, starting docker-compose stack).
The NestJS app running in dev mode will be exposed on http://localhost
(port 80)
For IDE autocompletion to work, run yarn
on the host machine.
# Bring up the docker with api, database, ...
$ docker-compose up -d
# development
$ npm run start
# build
$ npm run build
# production mode
$ npm run prod
# fix lint errors
$ npm run lint:fix
To build a docker image, execute:
$ ./build.sh
# unit tests
$ docker exec -it nest npm run test
# e2e tests
$ docker exec -it nest npm run test:e2e
# test coverage
$ docker exec -it nest npm run test:cov
.env.example
contains the configuration keys that must be set in .env.dev
for development and/or
.env.prod
for production.
When using the build script, one of these is automatically cloned to .env
. If you don't use the
build script, please m
To see all available endpoints visit http://localhost/docs
TypeORM gives the possibility to use next db types:
mysql
, postgres
, mariadb
, sqlite
, mongodb
etc. Please look at docs for more details.
We are using postgres
.
This software has been developed as a part of the Framework for Gamified Programming Education (https://fgpe.usz.edu.pl/) and FGPE Plus: Learning tools interoperability for gamified programming education (https://fgpeplus.usz.edu.pl/) projects which were co-funded by the Erasmus+ Programme of the European Union. |