This commit introduces additional user settings properties, including TrendStrongAgreementThreshold, SignalAgreementThreshold, AllowSignalTrendOverride, and DefaultExchange, to the User entity and associated DTOs. The UserController and UserService are updated to handle these new settings, allowing users to customize their trading configurations more effectively. Database migrations are also included to ensure proper schema updates for the new fields.
Fastify Official Demo
The aim of this repository is to provide a concrete example of a Fastify application using what are considered best practices by the Fastify community.
Prerequisites: You need to have Bun version 1.3 or higher installed.
Getting started
Install the dependencies:
bun install
Database
You can run a MySQL instance with Docker:
docker compose up
To run it in the background:
docker compose up -d
To create and update the database schema, run the migrations:
bun run db:migrate
To populate the database with initial data, run:
bun run db:seed
TypeScript
To build the project:
bun run build
Start the server
In dev mode:
bun run dev
Open http://localhost:3000 to view it in the browser.
In production mode:
bun run start
Testing
To run the tests:
bun run test
Standalone
dev and start leverage fastify-cli,
but you can run the demo as a standalone executable (see server.ts):
bun run standalone
Linting
To check for linting errors:
bun run lint
To check and automatically fix linting errors:
bun run lint:fix
Learn More
To learn more about Fastify, check out the Fastify documentation.