refactor: refactor code and update configuration files #9
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Added
.DS_Store
to the.gitignore
file to prevent it from being tracked.npm run lint
,npm run test:coverage
to the.husky/pre-commit
file to lint, and run test coverage before committing..sequelizerc
file to configure paths for Sequelize.config/auth.config.js
file for authentication configurations.engines
field topackage.json
specifying Node.js version requirement.database/custom_migration/sync-db.js
file to synchronize the database.database/seeders/20240412065335-seed-roles.cjs
file for seeding roles.Changed
app/controllers/auth.controller.js
andapp/middleware/authJwt.js
to importconfig/auth.config.js
from the correct path.config/db.config.js
to use ES6 destructuring inapp/models/index.js
.config/auth.config.js
to theconfig
directory.config/config.json
as it's no longer needed.app/config/db.config.js
to theconfig
directory.migrations/20240412074035-create-roles.cjs
,migrations/20240412074035-create-users.cjs
,migrations/20240412074305-create-user-roles.cjs
.models/index.cjs
.package.json
scripts to use correct paths for migrations and seed generation.Fixed
custom_migration/sync-db.js
.seeders/20240412065335-seed-roles.cjs
.package.json
scripts to properly specify migration and seed generation names.