You'll need to install Docker on your Mac
To get started, clone the repository:
[email protected]: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