Group Project - Dalhousie University (Spring 2022)
- Backend - Django Framework
- Frontend - ReactJS
- Database - MySQL
- Cloud - AWS
System requirements for building on local system :
- Python 3.6
- MySQL
- NodeJS
Once prerequisite requirements are satisfied, follow the steps:
- Git clone the repository and checkout the master branch.
$ git clone https://git.cs.dal.ca/courses/2022-winter/csci-5308/group5
$ git checkout master- Activate virtual environment
$ virtualenv asdc-group5
$ source asdc-group5/bin/activate- Install the requirements
$ pip install -r requirements.txt- Create a new .env file with contents present in .env.example
$ nano password_vault_backend/.env-
Add content from .env.example and paste it into .env. Make sure to keep this file in the correct path with no extra white spaces.
-
Run migrations from the root directory. This will populate your database with required tables and values.
$ python3 password_vault_backend/manage.py migrate- Finally, run the server with
$ python3 password_vault_backend/manage.py runserver- Open
127.0.0.1:8080to view the API specifications.
Backend Architecture -
- AWS Elastic Compute Cloud (EC2)
- AWS Simple Secure Storage (S3)
- AWS CloudDeploy
- AWS Cloudformation
- AWS Virtual Private Cloud (VPC)
Start with AWS Cloudformation template present in the deployment scripts/deploy_to_aws.template by adding it to the cloudformation runner here.
This will generate our technical stack on AWS which includes all above mentioned services.
Post that, you can navigate to the AWS Codedeploy page by clicking here. You can create a project with the configuration given below.
Once the deployment succeeds, you can open the URL in the web browser.
Cloud Logging - You can view all requested application logs with tags like info, error, warning on logdna.com. Attached is the screenshot of dashboard with logs of a feature.






