Skip to content

this app is for uploading files to AWS S3, where it will be deployed on EC2

Notifications You must be signed in to change notification settings

Jardielson-s/aws

Repository files navigation

tools for project and installation

npm i

scripts for package.json

"restart"

npx sequelize db:migrate:undo:all && npx sequelize db:migrate

this script above formats migrations and restarts

"start"

nodemon src/index.js

the script above starts the project

struct for project

  • paste config:

    have mysql database connection setup

  • paste middleware:

    content all files reference middleware like multer, Authorization.

  • paste migrations:

    database version control.

  • paste controllers:

    content file references to part of the route controller.

  • paste models:

    have models that are database reference tables.

  • paste public:

    have static files like images, vids, documents, etc.

struct project image

alt text

teste

in testing use sqlite3 with development database, use jest, faker and factory-girl to generate dummy data.

run test

npm test

in the test you choose where the storage is located in the local or s3, just select in the environment variables

About

this app is for uploading files to AWS S3, where it will be deployed on EC2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published