added deploying to ECS
This commit is contained in:
parent
0b21489989
commit
4366b6aba4
@ -1,8 +1,8 @@
|
|||||||
version: 2.1
|
version: 2.1
|
||||||
orbs:
|
orbs:
|
||||||
aws-cli: circleci/aws-cli@4.1.2
|
aws-cli: circleci/aws-cli@4.1.2
|
||||||
aws-ecr: circleci/aws-ecr@9.0.1
|
aws-ecr: circleci/aws-ecr@9.0.1
|
||||||
|
aws-ecs: circleci/aws-ecs@4.0.0
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
docker:
|
docker:
|
||||||
@ -27,23 +27,41 @@ jobs:
|
|||||||
name: Test Frontend
|
name: Test Frontend
|
||||||
command: |
|
command: |
|
||||||
npm test
|
npm test
|
||||||
|
run_task:
|
||||||
|
docker:
|
||||||
|
- image: cimg/python:3.10
|
||||||
|
steps:
|
||||||
|
- aws-cli/setup:
|
||||||
|
role_arn: arn:aws:iam::797929460436:role/ecs
|
||||||
|
role_session_name: example-session
|
||||||
|
- aws-ecs/run_task:
|
||||||
|
awsvpc: false
|
||||||
|
cluster: arn:aws:ecs:eu-north-1:797929460436:cluster/mern-ludo-cluster
|
||||||
|
launch_type: EC2
|
||||||
|
task_definition: mern-ludo-docker-task
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
test:
|
build_and_test_and_deploy:
|
||||||
jobs:
|
jobs:
|
||||||
- build_and_test
|
- build_and_test
|
||||||
build_and_deploy:
|
- aws-ecr/build_and_push_image:
|
||||||
jobs:
|
auth:
|
||||||
- aws-ecr/build_and_push_image:
|
- aws-cli/setup:
|
||||||
auth:
|
role_arn: arn:aws:iam::797929460436:role/openid
|
||||||
- aws-cli/setup:
|
role_session_name: example-session
|
||||||
role_arn: arn:aws:iam::797929460436:role/openid
|
repo: mern-ludo
|
||||||
role_session_name: example-session
|
public_registry: true
|
||||||
repo: mern-ludo
|
tag: latest
|
||||||
public_registry: true
|
requires:
|
||||||
tag: latest
|
- build_and_test
|
||||||
filters:
|
filters:
|
||||||
branches:
|
branches:
|
||||||
only:
|
only:
|
||||||
- main
|
- main
|
||||||
|
- run_task:
|
||||||
|
requires:
|
||||||
|
- aws-ecr/build_and_push_image
|
||||||
|
filters:
|
||||||
|
branches:
|
||||||
|
only:
|
||||||
|
- main
|
||||||
13
README.md
13
README.md
@ -3,8 +3,8 @@
|
|||||||
Ludo Online is a multiplayer web-based implementation of the classic board game Ludo, built using the MERN stack and integrated with SocketIO for real-time communication.
|
Ludo Online is a multiplayer web-based implementation of the classic board game Ludo, built using the MERN stack and integrated with SocketIO for real-time communication.
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
>> Play Online here <<
|
>> <a href="http://ec2-51-20-142-4.eu-north-1.compute.amazonaws.com:8080">Play online here</a> <<
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p align="center">
|
<p align="center">
|
||||||
>> <a href="https://youtu.be/mGMnH9Nvsyw">Watch YouTube Video here</a> <<
|
>> <a href="https://youtu.be/mGMnH9Nvsyw">Watch YouTube Video here</a> <<
|
||||||
@ -29,7 +29,7 @@ Tests:
|
|||||||
|
|
||||||
  
|
  
|
||||||
|
|
||||||
Tools:
|
Other:
|
||||||
|
|
||||||
    
|
    
|
||||||
|
|
||||||
@ -41,12 +41,11 @@ Tools:
|
|||||||
|
|
||||||
- Maintained code reliability by implementing unit and integration tests using **Mocha**, **Chai**, and **Jest**.
|
- Maintained code reliability by implementing unit and integration tests using **Mocha**, **Chai**, and **Jest**.
|
||||||
|
|
||||||
- Hosted in a **Docker** container on **AWS EC2**.
|
|
||||||
|
|
||||||
- Established CI/CD using **CircleCI**.
|
|
||||||
|
|
||||||
- Implemented E2E tests utilizing **Cypress**, addressing challenges related to [testing collaboration](https://docs.cypress.io/guides/references/trade-offs#Multiple-browsers-open-at-the-same-time) and canvas functionality in the application.
|
- Implemented E2E tests utilizing **Cypress**, addressing challenges related to [testing collaboration](https://docs.cypress.io/guides/references/trade-offs#Multiple-browsers-open-at-the-same-time) and canvas functionality in the application.
|
||||||
|
|
||||||
|
- Established a CI/CD pipeline using **CircleCI**, with pushing **Docker** container to **AWS ECR** and deploying to **AWS ECS**
|
||||||
|
|
||||||
|
|
||||||
## Installation
|
## Installation
|
||||||
|
|
||||||
1. Download this repository
|
1. Download this repository
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.serversTableContainer {
|
.serversTableContainer {
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 500px;
|
|
||||||
overflow: scroll;
|
overflow: scroll;
|
||||||
|
height: 500px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
.refresh {
|
.refresh {
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
.roomName {
|
.roomName {
|
||||||
max-width: 150px;
|
max-width: 150px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
text-align: left !important;
|
text-align: left !important;
|
||||||
}
|
}
|
||||||
.rooms > thead > tr :nth-child(2) {
|
.rooms > thead > tr :nth-child(2) {
|
||||||
@ -30,6 +32,7 @@
|
|||||||
.rooms {
|
.rooms {
|
||||||
border-collapse: collapse;
|
border-collapse: collapse;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
height: fit-content;
|
||||||
}
|
}
|
||||||
|
|
||||||
.lastColumn {
|
.lastColumn {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user