A simple Node JS app with GraphQL and React JS
- Docker: https://www.docker.com/
- Docker Compose: https://docs.docker.com/compose/
- NodeJS: https://nodejs.org/en/
- Yarn: https://yarnpkg.com/
- Copy default settings
cp .env.example .env
- Run docker containers
docker-compose up -d
- Install dependencies
yarn
- Run Application
yarn dev
- Run the app
http://localhost:3000
See graphql interface by going to http://localhost:3000/graphql
query getNews {
news {
id
title
link
snippet
date
}
}
Test can be found in tests/resolvers
. Run test by using the following command:
yarn test