Skip to content

Backend side for the WeLearn project by students from Marconi, Dalmine

License

Notifications You must be signed in to change notification settings

Marconi-weLearn/weLearn-be

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeLearn-be

WeLearn-be is WeLearn-FE's backend and exposes some REST API for performing some operations and accessing to the data. WARNING: It's not recommended to put it in production because it is not ready yet. There are many security and functionality issues.

Requirements

It requires docker, keycloak, mongodb and nuvola-magica.

Keycloak setup

  • Create a REALM
  • Create the role TEACHER
  • Add some users.
  • Create a client welearn-be with:
    • Access type = 'bearer-only'
    • Copy the secret in the credentials tab

Configuration of the project

There is a configuration file called application.properties in src/main/resources/. It should be configured accordingly your needs. The passwords should be changed. In particular set the correct values to the keycloak.auth-server-url, spring.data.mongodb.uri and nuvola-magica.base_url properties.

Setup (on docker)

git clone https://github.com/Marconi-weLearn/weLearn-be.git
cd weLearn-be
mvn package
docker build -t welearn-be:latest .
docker run -dp 8081:8080 --name welearn-be welearn-be:latest

About

Backend side for the WeLearn project by students from Marconi, Dalmine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%