Doctrina is an online educational platform. With the help of the Doctrina, you can easily transfer the educational process to your device.
# install dependencies
$ npm i
$ cd doctrina-ui
$ npm i
# run server
$ npm run server
Now you should be able to access API at http://localhost:5000
# run angular client
$ npm run client
Now you should be able to access client part at http://localhost:4200
# start server and client with one command
$ npm run dev
Account types: "student" or "teacher"
Pages counting starts at zero
fetch('/graphql', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Accept': 'application/json',
},
body: JSON.stringify({query: "{courses{title}}"})
})
.then(r => r.json())
.then(data => console.log('data returned:', data));
mutation{
createCourse(
course: {
title: "Math",
description: "Cool!"
}){
title,
description,
createdAt
}
}
{
courses{
title,
description
}
}