Skip to content

A backend server using TypeGraphql, TypeORM, TypeScript and Postgres for an e-commerce website and app

License

Notifications You must be signed in to change notification settings

samirprakash/typegraphql-server-boilerplate

Repository files navigation

TypeGraphQL server boilerplate

A graphQL and typegraphql based server boilerplate to be used as a backend for an e-commerce based web application or mobile app.

Getting Started

  • Get the pre-requisites done
  • Open a new terminal window and CD to your workspace
  • Clone this repo

Prerequisites

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.

Installing

  • 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.

Running the tests

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.

Deployment

TBD

Contributing

Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.

Authors

About

A backend server using TypeGraphql, TypeORM, TypeScript and Postgres for an e-commerce website and app

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published