Instance | Branch |
---|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Desktop Entry] | |
Encoding=UTF-8 | |
Name=Postman | |
Exec=postman | |
Icon=/home/USERNAME/Postman/app/resources/app/assets/icon.png | |
Terminal=false | |
Type=Application | |
Categories=Development; |
Node.js Express JSON API - CRUD Stickers We'll be using:
Postgres for our database
knex.js for our database migrations, seeds and queries.
express.js for our JSON routes
Mocha, Chai and SuperTest to test our routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stage 1 - build environment | |
FROM node:8.15-alpine as builder | |
WORKDIR /usr/src/app/ | |
COPY . ./ | |
RUN npm install --production | |
RUN npm run build | |
# Stage 2- production environment | |
FROM nginx:alpine | |
COPY nginx.conf /etc/nginx/conf.d/default.conf | |
COPY --from=builder /usr/src/app/build/ /usr/share/nginx/html/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:8.15-alpine | |
WORKDIR /usr/src/app | |
ENV PATH /usr/src/app/node_modules/.bin:$PATH | |
COPY package* /usr/src/app/ | |
RUN npm install | |
RUN npm install react-scripts | |
COPY . . | |
CMD ["npm", "start"] | |
EXPOSE 3000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3" | |
services: | |
app: | |
build: . | |
container_name: planetpegasus-autobirther-app | |
depends_on: | |
- redis | |
links: | |
- redis | |
environment: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"arrowParens": "always", | |
"printWidth": 140, | |
"tabWidth": 2, | |
"singleQuote": true, | |
"trailingComma": "es5", | |
"bracketSpacing": true, | |
"semi": true, | |
"useTabs": false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
nginx: | |
image: nginx:alpine | |
restart: always | |
labels: | |
- "traefik.enable=true" | |
- 'traefik.frontend.rule=Host:www.website.com' | |
- "traefik.port=80" | |
volumes: |