lindsaykh / act_project

MIT License
3 stars 0 forks source link

Scaffold DB #11

Open C-Miranda opened 1 year ago

C-Miranda commented 1 year ago

Scaffold to app and set up for development once DB is chosen and tech stacks are in place. Discuss and finalize options with team.

Database- postgreSQL ORM- Sequelize ORM Server- Nest.js Auth-Passport from nest.js dotenv- env files Typescript/node (language)

  1. Set up database (PostgreSQL) for test and production regions
    • set up core directory- the core directory will contain all our core setups, configuration, shared modules, pipes, guards, and middleware.
    • dbConfig
    • dbConfig interface
    • database module
    • database providers
    • update app module
    • env file (git ignore)
    • env sample file (can be committed with fake values)

.env file: Username, password, and DB name should be what you use to set up your Postgres. Create a Postgres database with your database name for local development. Need to create one for dev/test (same one) and one for production.