-
Clone the repository:
git clone https://github.com/your-username/skilltest-new.git cd skilltest-new -
Install dependencies:
npm install -
Set up environment variables:
- Create a
.envfile in the root directory - Add necessary environment variables (e.g., DATABASE_URL, PORT)
- Create a
-
Set up the database:
- Ensure MySQL is installed and running
- Create a new database for the project
npm run dev
npm run build npm start
npm run migration:create -- -n MigrationName
npm run migration:generate -- -n MigrationName
npm run migration:run
npm run migration:revert
npm run migration:show
npm run db:reset
src/: Source code directorycontrollers/: Request handlersdatabase/: Database connection and configurationservices/: Business logicviews/: Handlebars templatesserver.ts: Server entry point
- TypeScript
- Node.js
- Fastify
- Handlebars
- TypeORM
- Zod
- MySQL