A modern api with comprehensive tooling including linting, formatting, testing, and development automation. Currently serves project data
- TypeScript: Strict type checking with modern ES2020 features
- Jest: Comprehensive testing framework with coverage reporting
- Development Tools: Hot reload with nodemon and ts-node
- Build System: TypeScript compiler with source maps and declarations
- Node.js 16.0.0 or higher
- npm
- Clone the repository
- Install dependencies:
npm install
Prisma is used here as database ORM
- To generate the prisma schema
npx prisma generate
- To view the database in prisma's browser studio
npx prisma studio
Further information available at https://www.prisma.io/docs/orm/overview/introduction
Start the development server with hot reload:
npm run devBuild the project for production:
npm run buildRun the built application:
npm startnpm run dev- Start development server with hot reloadnpm run build- Build the projectnpm start- Run the built applicationnpm test- Run testsnpm run test:watch- Run tests in watch modenpm run test:coverage- Run tests with coverage reportnpm run format- Format code with Biomenpm run clean- Clean build directory
src/
├── index.ts # Main application entry point
tests/ # Test files
└── server.spec.ts
Configuration files:
├── tsconfig.json # TypeScript configuration
├── jest.config.js # Jest testing configuration
├── biome.json # Biome configuration
└── package.json # Project dependencies and scripts
This project uses several tools to maintain code quality:
- TypeScript: Provides static type checking
- Biome: Formatting
- Jest: Ensures code works as expected through comprehensive testing
- Fork the repository
- Create a feature branch
- Make your changes
- Run tests:
npm test - Format code:
npm run format - Submit a pull request
ISC