A full-stack application with NestJS backend and Next.js frontend.
smart_ticket_system/
├── backend/ # NestJS API server
├── frontend/ # Next.js web application
└── README.md # This file
- Node.js (v18 or higher)
- npm
-
Navigate to the backend directory:
cd backend -
Install dependencies (already done during setup):
npm install
-
Start the development server:
npm run start:dev
The backend API will be available at http://localhost:3000
-
Navigate to the frontend directory:
cd frontend -
Install dependencies (already done during setup):
npm install
-
Start the development server:
npm run dev
The frontend application will be available at http://localhost:3000
Note: You'll need to configure different ports for backend and frontend if running simultaneously. The backend typically runs on port 3000, so you may want to configure the frontend to run on port 3001.
- Main application files are in
backend/src/ - API endpoints can be added by creating controllers and services
- Database configuration and models can be added as needed
- Application files are in
frontend/src/ - Uses TypeScript and Tailwind CSS for styling
- App Router is configured for modern Next.js development
npm run start- Start production servernpm run start:dev- Start development server with hot reloadnpm run start:debug- Start server in debug modenpm run build- Build the applicationnpm run test- Run unit testsnpm run test:e2e- Run end-to-end tests
npm run dev- Start development servernpm run build- Build for productionnpm run start- Start production servernpm run lint- Run ESLint
- Configure CORS in the backend to allow frontend connections
- Set up environment variables for both projects
- Configure database connections in the backend
- Implement API endpoints and corresponding frontend pages
- Add authentication and authorization as needed