The purpose of the application is to educate users on the terminology used in trading of shares.
The following 3 commands are enough to run Docker:
npm run dc:dev:up
docker exec -it evaexchange npm run db:mig:deploy
docker exec -it evaexchange npm run db:seed
Duplicate .env.example and edit it to .env
Installs project dependencies.
Generates Prisma models and CRUD operations.
Deploys database migration.
Runs database seeding.
Starts the server in development mode with hot reloading.
For development purposes, you can use the following npm scripts:
** The npm run
command must be in front before running the commands. Ex: npm run dev
** For local use, change .env.example to .env and define the values correctly.
Builds the project for production. It first cleans the dist/
folder, then compiles TypeScript code to JavaScript using tsc
.
Runs the compiled production code.
Initializes database migration and saves it with a name init
.
Deploys database migration.
Resets the database and rolls back all database migrations.
Regenerates Prisma models and CRUD operations.
Pushes the database schema and migrations to the database.
Runs a script to seed the database with sample data.