| src | ||
| .gitignore | ||
| jest.config.js | ||
| package-lock.json | ||
| package.json | ||
| README.md | ||
| tsconfig.json | ||
SolPay - Node.js TypeScript Application
A modern Node.js application built with TypeScript, featuring Express.js for the web server and comprehensive testing setup.
Features
- 🚀 TypeScript - Full TypeScript support with strict type checking
- 🧪 Testing - Jest testing framework with TypeScript support
- 🔧 Development - Hot reload with ts-node for development
- 📦 Build System - TypeScript compiler with source maps
- 🎯 Modern ES2020 - Latest JavaScript features
Prerequisites
- Node.js (v16 or higher)
- npm or yarn
Installation
- Clone the repository:
git clone <repository-url>
cd solpay
- Install dependencies:
npm install
Available Scripts
npm run dev- Start development server with hot reloadnpm run build- Build the TypeScript code to JavaScriptnpm start- Start the production server (requires build first)npm run watch- Watch for changes and rebuild automaticallynpm test- Run testsnpm run clean- Clean build output
Development
To start developing:
npm run dev
This will start the server using ts-node, which automatically compiles TypeScript on the fly.
Building for Production
npm run build
npm start
Project Structure
solpay/
├── src/ # TypeScript source code
├── dist/ # Compiled JavaScript (generated)
├── tests/ # Test files
├── package.json # Dependencies and scripts
├── tsconfig.json # TypeScript configuration
├── jest.config.js # Jest testing configuration
└── README.md # This file
Testing
Run tests with:
npm test
Run tests with coverage:
npm test -- --coverage
TypeScript Configuration
The project uses strict TypeScript settings for better code quality:
- Strict mode enabled
- No implicit any types
- Source maps for debugging
- Declaration files generation
- ES2020 target
Contributing
- Fork the repository
- Create a feature branch
- Make your changes
- Add tests for new functionality
- Ensure all tests pass
- Submit a pull request
License
MIT License - see LICENSE file for details