Back-end for Driven.t, an event management solution.
Driven.t is a web browser application with which you can manage every single aspect of your event.
- Clone this repository
- Install all dependencies
npm i
- Create a PostgreSQL database with whatever name you want
- Configure the
.env
file using the.env.example
file - Run all migrations
npm run migration:run
- Run the back-end in a development environment:
npm run dev
- Or build it and run it in production environment:
npm run build
npm start
dev
: runs the back-end in development mode, watching file changes (withnpm run dev
). ESLint errors will stop the back-end from runningbuild
: generates the JavaScript version for this project (withnpm run build
). ESLint errors will stop the bundle from being createdmigration:generate
: generates new migrations from typescript in a single step (withnpm run migration:generate -- -n MigrationName
)migration:run
: runs all pending migrations (withnpm run migration:run
)eslint:fix
: runs eslint fixing everything eslint can automatically fixseed
: runs database seed files insrc/seeders
to populate database automatically (withnpm run seed
). Will prompt which seed files should run