Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
codexponent authored Jun 28, 2021
1 parent bf2b9fd commit 04ff2f6
Showing 1 changed file with 41 additions and 1 deletion.
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,42 @@
# scalable-employee-mgmt-portal
# Scalable Employee Mgmt Portal
Scalable Employee Management Portal

# Motivation:
In today's world, our application should be able to handle multiple requests from customers all around the world. So it is important to make an application fault-tolerant and able to scale as the need of the demand. This post talks about how to create a scalable web application using various AWS services like Load Balancers, Target Groups, Auto Scaling, Launch Configuration, Amazon Machine Image(AMI), Route 53, and so on.

# Architecture:
![architecture](https://user-images.githubusercontent.com/13358738/123594750-d257a380-d80f-11eb-9549-ba81fa0b3b36.png)

# Prerequisites:
1. AWS EC2
2. AWS AMI
3. Load Balancer
4. Auto Scaling Groups
5. MySQL Instance
6. Route 53

# Replication Steps:
1. Create a config.ini file
```bash
[MYSQL]
user=
password=
host=
database=
```
2. Commands to confgure the application
```bash
git clone git@github.com:codexponent/scalable-employee-mgmt-portal.git
pip install -r requirements.txt
python main.py
```
3. Create a reboot cronjob for the AMI Image
```bash
touch run.sh
echo "#!/bin/bash
python main.py" > run.sh

crontab -e
@reboot /home/ec2-user/scalable-employee-mgmt-portal/run.sh
```
4. Start to create AMI Image written on the post.

0 comments on commit 04ff2f6

Please sign in to comment.