RafaelBahiense / Drivent-Back

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

drivent-back

Back-end for Driven.t, an event management solution.

About

Driven.t is a web browser application with which you can manage every single aspect of your event.

How to run

  1. Clone this repository
  2. Install all dependencies
npm i
  1. Create a PostgreSQL database with whatever name you want
  2. Configure the .env file using the .env.example file
  3. Run all migrations
npm run migration:run
  1. Run the back-end in a development environment:
npm run dev
  1. Or build it and run it in production environment:
npm run build
npm start

npm scripts to make life easier

  • dev: runs the back-end in development mode, watching file changes (with npm run dev). ESLint errors will stop the back-end from running
  • build: generates the JavaScript version for this project (with npm run build). ESLint errors will stop the bundle from being created
  • migration:generate: generates new migrations from typescript in a single step (with npm run migration:generate -- -n MigrationName)
  • migration:run: runs all pending migrations (with npm run migration:run)
  • eslint:fix: runs eslint fixing everything eslint can automatically fix
  • seed: runs database seed files in src/seeders to populate database automatically (with npm run seed). Will prompt which seed files should run

About


Languages

Language:HTML 81.2%Language:TypeScript 16.4%Language:JavaScript 1.6%Language:CSS 0.9%Language:Shell 0.0%