A TypeScript/Express.js API backend for a learning management system with courses, topics, and user authentication.
- Node.js (16+ recommended)
- PostgreSQL database
- pnpm package manager
-
Clone the repository
git clone <repository-url> cd skillfusion-back
-
Install dependencies
pnpm install
-
Environment Configuration
- Copy
.env.exampleto.env - Fill in your database credentials and other required environment variables
- Copy
-
Database Setup
- Create a PostgreSQL database
- Run the initialization script to set up tables and functions:
pnpm run reset-db
pnpm run dev- Start development server with hot reloadpnpm run reset-db- Reset and initialize database with schemapnpm run test- Run tests
Start the development server:
pnpm run dev