You'll need to install Docker on your Mac
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 👍
To play around with the API, after rebuilding your environment go to http://localhost:3000/graphql
Some tests have been included in this repository to serve as an example. To run the tests, execute:
yarn test