https://github.com/andrewsy1004/back-cinenow
https://github.com/andrewsy1004/back-cinenow
docker env jwt nestjs typescript
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/andrewsy1004/back-cinenow
- Owner: Andrewsy1004
- Created: 2025-04-28T01:55:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-08T14:44:07.000Z (about 1 year ago)
- Last Synced: 2025-05-17T00:13:20.822Z (about 1 year ago)
- Topics: docker, env, jwt, nestjs, typescript
- Language: TypeScript
- Homepage:
- Size: 13.2 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CineNow Backend
A comprehensive cinema management system built with NestJS, featuring movie management, seat booking, user authentication, and administrative tools.
## 🎯 Features
- **Movie Management**: Add, update, and manage movie listings
- **User Authentication**: Secure login and registration system
- **Admin Dashboard**: Complete administrative control panel
- **Statistics & Analytics**: Detailed reports and insights
- **PostgreSQL Database**: Robust data management
- **RESTful API**: Well-structured API endpoints
## 🏗️ Project Structure
```
backend/
├── dist/ # Compiled JavaScript files
├── node_modules/ # Dependencies
├── postgres/ # PostgreSQL configuration
└── src/ # Source code
├── auth/ # Authentication module
│ └── [auth logic]
├── config/ # Configuration files
├── Constant/ # Application constants
├── movies/ # Movie management module
│ └── [movie logic]
├── seed/ # Database seeding
├── test/ # Test files
├── app.module.ts # Main application module
└── main.ts # Application entry point
```
## 🚀 Getting Started
### Prerequisites
- Node.js (v16 or higher)
- PostgreSQL
- npm or yarn
### Installation
1. **Clone the repository**
```bash
git clone
```
2. **Install dependencies**
```bash
npm install
```
3. **Environment Configuration**
```bash
cp .env.template .env
```
Configure your environment variables in `.env`:
```env
DATABASE_URL = postgresql://username:password@localhost:5432/cinema_db
JWT_SECRET = your-jwt-secret
PORT = 3000
```
4. **Database Setup**
```bash
# Start PostgreSQL with Docker
docker-compose up -d
```
5. **Start the application**
```bash
# Development mode
npm run start:dev
# Production mode
npm run start:prod
```
## 🤝 Contributing
1. Fork the repository
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
3. Commit your changes (`git commit -m 'Add some amazing feature'`)
4. Push to the branch (`git push origin feature/amazing-feature`)
5. Open a Pull Request