Skip to content

gordysc/apollo-inversify-typescript

 
 

Repository files navigation

Apollo GraphQL + InversifyJS + Typescript 🚀

Prerequisites

You'll need to install Docker on your Mac

Getting Started

To get started, clone the repository:

git@github.com:dialexa/apollo-inversify-typescript.git

Navigate to the directory on your machine and install the NodeJS modules (with yarn 🙌):

yarn install

Then, build/rebuild the environment by running the following command:

yarn run rebuild

This will:

  • Kill & remove all Docker containers 💀
  • Download the Docker images ✅
  • Migrate the Postgres database to the latest schema 💥
  • Populate the database with seed data 🌱
  • Create a test database 💯
  • Migrate the test database to the latest schema 🔥
  • Start up the API & Postgres servers 🎉

Note: The API & Postgres servers are started up in the background 👍

Playing w/ the API

To play around with the API, after rebuilding your environment go to http://localhost:3000/graphql

Running Tests

Some tests have been included in this repository to serve as an example. To run the tests, execute:

yarn test

Resources

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 90.1%
  • Shell 5.5%
  • JavaScript 4.0%
  • Dockerfile 0.4%