Backend for the backend of the org app for Reach4Help
- Before we forget! Create a new
.env
file in your root folder with the same content as our integration file. This will be used by our integration tests once we have them. - Because our backend needs to connect to stuff like a database, etc. You need to install docker in order to start the project.
- If you're using Mac or Windows you should be good to go, however, if you are using Linux, you must install Docker Compose (already included in the versions for Mac and Windows), a command line tool that builds on top of the Docker Engine and provides a series of useful commands that we are going to be using to start our project.
- After the previous steps you should be able to run
npm start
, which in turn runs a simple script that aims to make this start up very easy to do. - You can check we have two Dockerfiles that describe our service (
Dockerfile
andDockerfile.dev
). Ourstart
is usingDockerfile.dev
which supports hot reload and all that good stuff so we can develop with pleasure!
When the server starts have a go with the GraphQL playground at:
http://localhost:4000/