Skip to content
/ hapidock Public

A docker based development environment for developing hapijs applications in typescript

License

Notifications You must be signed in to change notification settings

jjude/hapidock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hapidock

A docker based development environment for developing hapijs applications in typescript

Objective:

  • develop in a near-production environment
  • source code should be on the host, but run in container
  • project dependencies (i.e: node_modules) should be only in container and not in host

Usage

1 - Clone hapidock repository

git clone https://github.com/jjude/hapidock

2 - Enter the hapidock directory and bring up the container

docker-compose up

When you execute this for the first time, it will download the needed components (alpine, node, npm, hapijs etc) and build the container. Once built it will bring up the container and execute the npm start command.

When you run docker-compose up next time, it will be faster, because everything is already downloaded.

3 - Now go to http://localhost:3000 on your host and enjoy

It also builds postgresql & pgadmin automatically. Use these parameters to connect to pg from pgadmin: username: postgres; db: postgres; password: secret. You need the hostname. Hostname is pg (the service name in docker-compose)

About

A docker based development environment for developing hapijs applications in typescript

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published