├── .gitignore ├── .jshintrc ├── .travis.yml ├── README.md ├── docker-compose.yml ├── migrate.sh ├── services ├── locations │ ├── .dockerignore │ ├── .eslintrc.json │ ├── Dockerfile │ ├── gulpfile.js │ ├── knexfile.js │ ├── package.json │ ├── src │ │ ├── app.js │ │ ├── db │ │ │ ├── .dockerignore │ │ │ ├── Dockerfile │ │ │ ├── connection.js │ │ │ ├── create.sql │ │ │ ├── migrations │ │ │ │ └── 20170405114746_locations.js │ │ │ ├── queries.js │ │ │ └── seeds │ │ │ │ └── locations.js │ │ ├── routes │ │ │ ├── _helpers.js │ │ │ └── locations.js │ │ └── server.js │ └── tests │ │ └── integration │ │ ├── routes.index.test.js │ │ └── routes.locations.test.js └── users │ ├── .dockerignore │ ├── .eslintrc.json │ ├── Dockerfile │ ├── gulpfile.js │ ├── knexfile.js │ ├── package.json │ ├── src │ ├── app.js │ ├── auth │ │ ├── _helpers.js │ │ └── local.js │ ├── db │ │ ├── .dockerignore │ │ ├── Dockerfile │ │ ├── connection.js │ │ ├── create.sql │ │ ├── migrations │ │ │ └── 20170403223908_users.js │ │ └── seeds │ │ │ └── users.js │ ├── routes │ │ └── users.js │ └── server.js │ └── tests │ ├── integration │ ├── routes.index.test.js │ └── routes.users.test.js │ └── unit │ ├── auth.helpers.test.js │ └── auth.local.test.js ├── tests ├── .dockerignore ├── Dockerfile ├── main.test.js └── package.json └── web ├── .dockerignore ├── .eslintrc.json ├── Dockerfile ├── gulpfile.js ├── package.json └── src ├── app.js ├── public ├── main.css └── main.js ├── routes ├── _helpers.js └── index.js ├── server.js └── views ├── _base.html ├── error.html ├── login.html ├── main.html ├── nav.html ├── register.html └── user.html /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | npm-debug.log 4 | _ignore 5 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/.jshintrc -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/.travis.yml -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/README.md -------------------------------------------------------------------------------- /docker-compose.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/docker-compose.yml -------------------------------------------------------------------------------- /migrate.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/migrate.sh -------------------------------------------------------------------------------- /services/locations/.dockerignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/locations/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/.eslintrc.json -------------------------------------------------------------------------------- /services/locations/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/Dockerfile -------------------------------------------------------------------------------- /services/locations/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/gulpfile.js -------------------------------------------------------------------------------- /services/locations/knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/knexfile.js -------------------------------------------------------------------------------- /services/locations/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/package.json -------------------------------------------------------------------------------- /services/locations/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/app.js -------------------------------------------------------------------------------- /services/locations/src/db/.dockerignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/locations/src/db/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/db/Dockerfile -------------------------------------------------------------------------------- /services/locations/src/db/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/db/connection.js -------------------------------------------------------------------------------- /services/locations/src/db/create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/db/create.sql -------------------------------------------------------------------------------- /services/locations/src/db/migrations/20170405114746_locations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/db/migrations/20170405114746_locations.js -------------------------------------------------------------------------------- /services/locations/src/db/queries.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/db/queries.js -------------------------------------------------------------------------------- /services/locations/src/db/seeds/locations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/db/seeds/locations.js -------------------------------------------------------------------------------- /services/locations/src/routes/_helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/routes/_helpers.js -------------------------------------------------------------------------------- /services/locations/src/routes/locations.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/routes/locations.js -------------------------------------------------------------------------------- /services/locations/src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/src/server.js -------------------------------------------------------------------------------- /services/locations/tests/integration/routes.index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/tests/integration/routes.index.test.js -------------------------------------------------------------------------------- /services/locations/tests/integration/routes.locations.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/locations/tests/integration/routes.locations.test.js -------------------------------------------------------------------------------- /services/users/.dockerignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/users/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/.eslintrc.json -------------------------------------------------------------------------------- /services/users/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/Dockerfile -------------------------------------------------------------------------------- /services/users/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/gulpfile.js -------------------------------------------------------------------------------- /services/users/knexfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/knexfile.js -------------------------------------------------------------------------------- /services/users/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/package.json -------------------------------------------------------------------------------- /services/users/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/app.js -------------------------------------------------------------------------------- /services/users/src/auth/_helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/auth/_helpers.js -------------------------------------------------------------------------------- /services/users/src/auth/local.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/auth/local.js -------------------------------------------------------------------------------- /services/users/src/db/.dockerignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /services/users/src/db/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/db/Dockerfile -------------------------------------------------------------------------------- /services/users/src/db/connection.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/db/connection.js -------------------------------------------------------------------------------- /services/users/src/db/create.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/db/create.sql -------------------------------------------------------------------------------- /services/users/src/db/migrations/20170403223908_users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/db/migrations/20170403223908_users.js -------------------------------------------------------------------------------- /services/users/src/db/seeds/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/db/seeds/users.js -------------------------------------------------------------------------------- /services/users/src/routes/users.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/routes/users.js -------------------------------------------------------------------------------- /services/users/src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/src/server.js -------------------------------------------------------------------------------- /services/users/tests/integration/routes.index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/tests/integration/routes.index.test.js -------------------------------------------------------------------------------- /services/users/tests/integration/routes.users.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/tests/integration/routes.users.test.js -------------------------------------------------------------------------------- /services/users/tests/unit/auth.helpers.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/tests/unit/auth.helpers.test.js -------------------------------------------------------------------------------- /services/users/tests/unit/auth.local.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/services/users/tests/unit/auth.local.test.js -------------------------------------------------------------------------------- /tests/.dockerignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/tests/Dockerfile -------------------------------------------------------------------------------- /tests/main.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/tests/main.test.js -------------------------------------------------------------------------------- /tests/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/tests/package.json -------------------------------------------------------------------------------- /web/.dockerignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /web/.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/.eslintrc.json -------------------------------------------------------------------------------- /web/Dockerfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/Dockerfile -------------------------------------------------------------------------------- /web/gulpfile.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/gulpfile.js -------------------------------------------------------------------------------- /web/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/package.json -------------------------------------------------------------------------------- /web/src/app.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/app.js -------------------------------------------------------------------------------- /web/src/public/main.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/public/main.css -------------------------------------------------------------------------------- /web/src/public/main.js: -------------------------------------------------------------------------------- 1 | /* 2 | javascripts 3 | */ 4 | -------------------------------------------------------------------------------- /web/src/routes/_helpers.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/routes/_helpers.js -------------------------------------------------------------------------------- /web/src/routes/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/routes/index.js -------------------------------------------------------------------------------- /web/src/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/server.js -------------------------------------------------------------------------------- /web/src/views/_base.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/_base.html -------------------------------------------------------------------------------- /web/src/views/error.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/error.html -------------------------------------------------------------------------------- /web/src/views/login.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/login.html -------------------------------------------------------------------------------- /web/src/views/main.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/main.html -------------------------------------------------------------------------------- /web/src/views/nav.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/nav.html -------------------------------------------------------------------------------- /web/src/views/register.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/register.html -------------------------------------------------------------------------------- /web/src/views/user.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mjhea0/node-docker-api/HEAD/web/src/views/user.html --------------------------------------------------------------------------------