- Download or clone the GitHub Repository
git clone https://github.com/dhenn12/OpenBadgesand checkout to branchmaster.
- install Docker on your local machine
- open shell and navigate to folder
OpenBadges - ensure that the correct API domain is used in lines 11 and 19 of docker-compose.yml (default: http://192.168.99.100:3001)
OpenBadges └── docker-compose.yml - run
docker-compose up - open 192.168.99.100:3000 respectively your individual domain (e.g. localhost:3000)
-
install Node.js v10.xx and MongoDB v4.xx on your local machine
-
open shell and create MongoDB
- on Windows:
"C:\Program Files\MongoDB\Server\4.2\bin\mongod.exe" --dbpath="C:\path_to_OpenBadges\data"
- on Windows:
-
open another shell and navigate to folder
apiOpenBadges └── api- run
npm install - run
npm start
- run
-
open another shell and navigate to folder
appOpenBadges └── app- run
npm install - run
npm start
- run
-
open localhost:3000
-
open shell and navigate to MongoDB (for windows:
C:\Program Files\MongoDB\Server\4.2\bin) -
import the demo data (e.g. users)
- run
mongoimport --db=openBadges --collection=users --file=\path\to\api\demo\users.json - further information
ensure that some "enddate" in courses.json are in the future to experience all functionalities of the application
OpenBadges └── api └── demo └── courses.jsonusername password admin admin123 d_hen06 1234567 h.k98 1234567 l_nisk01 1234567 m_ster15 1234567 s_buse01 1234567 - run
The generated HTML page of the current API documentation are located in doc and can be accessed in the browser at https://dhenn12.github.io/OpenBadges/api/doc/index.html or local at localhost:3001/docs respectively 192.168.99.100:3001/docs.
- Dorian
- Hilal
- Marius
- Luc
- Sven