A simple containerized NodeJS based API with Sqlite3
docker
and docker-compose
are required for this project.
- docker-ce
- docker-ce-cli
- docker-compose
- containerd.io
$ git clone https://github.com/dougclarke/nodejs-hello-api.git
$ cd nodejs-hello-api
$ docker-compose build
$ docker-compose run test
$ docker-compose up api`
$ curl 'http://localhost:9000/hello'
$ curl 'http://localhost:9000/hello?name=Doug'
$ curl 'http://localhost:9000/hello?name=Doug%20Clarke'
$ git clone https://github.com/dougclarke/nodejs-hello-api.git
$ cd nodejs-hello-api
$ vagrant up
$ vagrant ssh
$ cd app
$ docker-compose build
$ docker-compose run test
$ docker-compose up api`