Skip to content

Web application to store and organize sound samples.

Notifications You must be signed in to change notification settings

florentcadot/mysoundmemes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Typescript, Vue, Clean architecture project

About

General

Web application to store and organize sound samples.

Tech

The whole project will try to fit a clean architecture approach.

Backend requirement

Create a .env file in /back with the following variables

export AWS_PRIVATE_BUCKET_NAME='myprivatebucket'
export AWS_REGION='eu-west-1'
export AWS_ACCESS_KEY_ID='IAMANID'
export AWS_SECRET_ACCESS_KEY='IAMAKEY'
export AWS_PUBLIC_BUCKET_NAME='mypublicbucket'

export ACCESS_TOKEN_SECRET='iamasecrettoken'
export ACCESS_TOKEN_HEADER='iamatokenheader'
export ACCESS_TOKEN_TTL_IN_MINUTES=60
export LOGIN_USERNAME_FIELD='username'
export LOGIN_PASSWORD_FIELD='password'
export JWT_PRIVATE_KEY='iamaprivatekey'

export DATABASE_PORT=27017
export DATABASE_USERNAME='iamanusername'
export DATABASE_PASSWORD='iamapsw'
export DATABASE_NAME='iamadbname'

export EMAIL_USER='[email protected]'
export EMAIL_PASSWORD='iamapassword'

export BACKEND_PORT=3000
export FRONT_BASE_URL='http://localhost:8080'

AWS S3

Create an user in IAM and attach the following policy

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "s3:GetBucketLocation",
                "s3:ListAllMyBuckets"
            ],
            "Resource": "arn:aws:s3:::*"
        },
        {
            "Effect": "Allow",
            "Action": "s3:*",
            "Resource": [
                "arn:aws:s3:::mysoundmemes-bucket",
                "arn:aws:s3:::mysoundmemes-bucket/*"
            ]
        }
    ]
}

Launch using docker and docker-compose

docker-compose up

Resources

Back :

Front :

About

Web application to store and organize sound samples.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published