NovaStack Project Documentation
Welcome to the NovaStack full-stack development framework! This documentation will help you quickly get started and understand how to use this framework to build modern applications.
Requirements
Before you begin, please ensure your development environment meets the following requirements:
- Node.js v16.0.0 or higher
- PNPM v8.0.0 or higher
- Git
- Supported operating systems: Windows, macOS, Linux
Installing Dependencies
After cloning the project, you first need to install the project dependencies:
pnpm installTIP
First-time installation may take a few minutes, depending on your network environment and computer performance.
Environment Configuration
The project uses .env files for environment configuration. You can copy the .env.example file and modify it as needed:
cp .env.example .envHere are some important environment variables:
# Application Configuration
APP_NAME=NovaStack
APP_ENV=development
APP_PORT=3000
APP_URL=http://localhost:3000
# Database Configuration
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=novastack
DB_USERNAME=root
DB_PASSWORD=
# API Configuration
API_PREFIX=/apiNote
Do not commit the .env file containing sensitive information to version control systems.
Database Migration
If your project uses a database, you need to run migration commands to set up the database structure:
pnpm run migrateThis will create all necessary tables and initial data.
Starting the Development Server
After completing the above steps, you can start the development server:
pnpm run devOnce the development server is running, you can access the application in your browser at http://localhost:3000.
Development Mode Features
- Hot Module Replacement (HMR)
- Real-time error notifications
- Auto-reload
- Development debugging tools
Common Commands
The project provides several useful npm script commands:
pnpm run lint- Run ESLint to check code standardspnpm run format- Format code using Prettierpnpm run typecheck- Run TypeScript type checkingpnpm run build- Build the application for productionpnpm run start- Start the application in production modepnpm run test- Run unit tests
More Information
For more detailed information about the project, please refer to:
- README.md
- API Documentation
- Source code comments