Skip to content

disney-parent-pass/back-end

Repository files navigation

back-end

Motivation

Gain more experience building out an API server with user authentication using TypeScript and the KnexJS query builder.

Project tooling:

Data Flow Diagram

Backend dataflow diagram

Local Development ( w/ server containerized)

Note: You could add a volume mounted at the project directory and see changes real time.

  1. Start the deployment: docker compose up --build

Local Development (w/ out server containerized)

Running the API

  1. Setup the DB: docker compose -f compose.dev.yml up --build
  2. Export:
  • export DB_ENV=localdev
  • export NODE_ENV=localdev
  • export DB_URI=postgresql://postgres:postgres@localhost:5432/disney_parent_dev
  1. Run migrations: npm run migrate
  2. Seed the database: npm run seed

Running Unit Tests

  1. Setup the DB: docker compose -f compose.dev.yml up --build
  2. Export:
  • export DB_ENV=testing
  • export NODE_ENV=testing
  • export DB_URI_TESTING=postgresql://postgres:postgres@localhost:5432/disney_parent_test
  1. Run migrations: npm run migratetest
  2. Seed the database: npm run seed

Acknowledgements and Resources

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published