A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prodThis service stores paste metadata in MongoDB and paste bodies in S3-compatible object storage.
Core app:
PORT: API port (default5001).APP_URL: Public backend URL (defaulthttp://localhost:5001).CORS_ORIGIN: Allowed frontend origin (defaulthttp://localhost:3000).
Database:
MONGO_URL: MongoDB connection string.
Auth/security:
BCRYPT_ROUNDS: Password hashing rounds (default12).JWT_ACCESS_SECRET: Secret for access tokens.JWT_REFRESH_SECRET: Secret for refresh tokens.JWT_ACCESS_EXPIRES_IN: Access token TTL (default15m).JWT_REFRESH_EXPIRES_IN: Refresh token TTL (default7d).
Paste behavior:
EXPIRATION_TIME: Default paste expiry (default1d).MIN_PASSWORD_LENGTH: Minimum password length (default8).MAX_PASSWORD_LENGTH: Maximum password length (default60).MAX_PASTE_TITLE_LENGTH: Maximum title length (default500).MAX_PASTE_BODY_LENGTH: Maximum body length (default10000).MAX_PASTE_SIZE: Legacy field currently not enforced by request validation.
Object storage (S3-compatible):
S3_BUCKET: Bucket used to store paste bodies.S3_REGION: Bucket region (defaultus-east-1).S3_ENDPOINT: Optional custom endpoint (for example, MinIO).S3_ACCESS_KEY_ID: Access key for object storage.S3_SECRET_ACCESS_KEY: Secret key for object storage.S3_FORCE_PATH_STYLE: Set totruefor path-style endpoints.
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:covNest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.