System requirments:
- docker
- docker-compose
- g++
- postgresql-server-dev-10
- node-gyp (via
npm install node-gyp -g)
- Create a
passport.tsin the config folder. The file contains the secret for the passport authentification.
/**
* This file should not be pushed to public repositories as it contains the
* jwt secret!
*/
export default 'mellon';
-
Start the database and pgAdmin:
docker-compose --f docker-compose-dev.yml up. -
Run
npm installand thennpm run start:devand
Afterwards…
- … gondolin will be available at
http://localhost:3000- Example rest request:
http://localhost:3000/Application/get(rest api is deprecated --> use GraphQL)
- Example rest request:
- … GraphiQL will be available at:
http://localhost:3000/graphql?(Click onRootQueryType) at the right side to get more information about the API. - … pgAdmin will be available at
http://localhost:5050(admin / admin)
docker build -t gondolin-server .
docker-compose up
PostgreSQL: gondolin / gondolin
pgAdmin: admin / admin