A graphQL and typegraphql based server boilerplate to be used as a backend for an e-commerce based web application or mobile app.
- Get the pre-requisites done
- Open a new terminal window and CD to your workspace
- Clone this repo
- Install Git
- Install Node JS
- Install yarn
- Install Postgress app
- Install redis
Make sure that postgres is up and running. Look at ormconfig and based on the values specified under default connection, create a user, password and database in postgres. if you want, you create your own username and password in postgres and update ormconfig.json
.
After installing redis, execute redis-server
in a standalone terminal to have redis running.
- Open a new terminal and CD to your cloned repo
- Execute
yarn install
on the terminal - Execute
yarn start
to get the build dependencies - Check that there are no errors on the terminal
- Server will start at
http://localhost:4000/graphql
http://localhost:4000/graphql is the Graphql playground where we can test the server side implementation.
Look here to checkout the examples for verifying our flows for login, registration, etc.
Execute yarn test
to execute the tests that are present in this application code base. Ensure that tests are present before executing the command or else an error would be generated.
TBD
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.