Skip to content

dialexa/hapi-inversify-typescript

Repository files navigation

HapiJS + InversifyJS + Typescript 🚀

Prerequisites

You'll need to install Docker on your Mac

Getting Started

To get started, clone the repository:

git@github.com:dialexa/hapi-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/documentation

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