...
Follow these steps to set up the project on your local machine:
- Clone the Repository
git clone https://github.com/hayrullahalper/edupayroll.git cd edupayroll
Before running the project, ensure you have configured all necessary environment variables and settings.
To manage environment variables, you need to fetch them from AWS Secrets Manager. Here’s how you can do it:
-
Install and Configure AWS CLI
Install the AWS CLI by following the instructions in the official documentation.
Run the following command and provide your AWS credentials and region:aws configure
- AWS Access Key ID
- AWS Secret Access Key
- Default region name: Enter
eu-central-1
- Default output format: Leave as
json
(default)
-
Fetch Secrets
Use the
fetch-secrets
target in theMakefile
to fetch and update your environment variables. Run:make fetch-secrets
This command makes the
fetch_secrets.sh
script executable and runs it, updating the.env
file with secrets from AWS Secrets Manager.