From 4d12c2d2e0fcd70c1b7d616918549bb5b8c744de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CWalistonBelles=E2=80=9D?= Date: Sat, 19 Nov 2022 22:47:24 -0300 Subject: [PATCH] feat: added docker --- README.md | 24 +- backend/Dockerfile | 10 + backend/README.md | 6 +- .../Controllers/Guilds/PlayersWithoutGuild.ts | 2 - backend/app/Policies/Dashboard.ts | 6 +- backend/contracts/enums/Role.ts | 2 +- backend/default_schema_mariadb.sql | 30 - backend/docker-compose.yml | 14 - backend/yarn.lock | 5027 +++++++++++++++++ docker-compose.yml | 42 + frontend/Dockerfile | 22 + frontend/middleware/dashboard.ts | 2 +- 12 files changed, 5132 insertions(+), 55 deletions(-) create mode 100644 backend/Dockerfile delete mode 100644 backend/docker-compose.yml create mode 100644 backend/yarn.lock create mode 100644 docker-compose.yml create mode 100644 frontend/Dockerfile diff --git a/README.md b/README.md index 139948a..d9e1c57 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,27 @@ This repository follows the semantic commit pattern, with the addition of the ta
+## 👨🏾‍💻 Build Setup + +```bash +# Create containers, the api will open on port 3333 while the web_app will be on port 3000 +$ docker-compose up --build + +# go to paste +$ cd api + +# Create your .env file using .env.example as an example + +# Install Dependencies +$ yarn install + +# Create database structure +$ node ace migration:run +$ node ace db:seed +``` + +
+ ## Contributing Contributions are more than welcome. @@ -98,8 +119,9 @@ Pull requests should be made to the develop branch as that is t ## 👨🏾‍💻 Techs -

Front-end

+
+

Front-end