-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #111 from fga-eps-mds/develop
Release 1
- Loading branch information
Showing
25 changed files
with
3,707 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
node_modules | ||
npm-debug.log | ||
Dockerfile | ||
.dockerignore |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/node_modules | ||
.env | ||
package-lock.json | ||
yarn.lock |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
FROM node:14.10.1-alpine3.10 | ||
|
||
WORKDIR /app | ||
|
||
COPY ./package.json . | ||
|
||
RUN npm install | ||
|
||
COPY . . | ||
|
||
EXPOSE 3000 | ||
|
||
ENTRYPOINT [ "npm", "run", "dev" ] |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
.PHONY: serve build push | ||
|
||
help: | ||
@echo "" | ||
@echo "Usage: make COMMAND" | ||
@echo "" | ||
@echo "A Makefile for building and deploying mkdocs markdown website" | ||
@echo "" | ||
@echo "Commands:" | ||
@echo "bash Enters iterative mode on backend" | ||
@echo "" | ||
|
||
# all: run | ||
|
||
# clear1: | ||
# sudo docker rm $(sudo docker ps -a -q) | ||
|
||
# clear2: | ||
# sudo docker image prune | ||
|
||
# clear3: | ||
# sudo docker volume prune | ||
|
||
run: | ||
sudo docker-compose up --build | ||
|
||
down: | ||
sudo docker-compose down | ||
|
||
bash: | ||
sudo docker exec -it backend sh |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
# 2020.1-Grupo2-BackEnd | ||
# 2020.1-Grupo2-BackEnd | ||
|
||
## Descrição | ||
|
||
Repositório responsável por operar o Backend do projeto do Grupo 2 da disciplina de Engenharia de Produto de Software em conjunto com Métodos de Desenvolvimento de Software da Universidade de Brasília, campus Gama. | ||
|
||
## Instalação | ||
|
||
Para subir o ambiente de desenvolvimento: | ||
|
||
``` | ||
docker-compose up --build | ||
``` | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
version: '3' | ||
services: | ||
backend: | ||
container_name: backend | ||
restart: always | ||
build: . | ||
ports: | ||
- 3000:3000 | ||
volumes: | ||
- ./src:/app/src | ||
links: | ||
- mongo | ||
mongo: | ||
container_name: mongo | ||
image: mongo | ||
ports: | ||
- 27017:27017 |
Oops, something went wrong.