CinemaTxt is a movie ticket booking website built with Next.js, allowing users to easily order tickets for currently playing movies. This repository contains the source code and project files for the CinemaTxt website.
- Browse for currently playing movies.
- View movie details such as title, synopsis, ratings, and ticket price.
- Select preferred seats and book tickets.
- Secure payment processing for ticket purchases.
- User registration and authentication system.
- Next.js framework for server-rendered React applications.
- React for building the user interface.
- TypeScript for static typing.
- Node.js for server-side JavaScript runtime.
- Tailwind CSS for styling the components.
- MySQL database for storing movie and user information.
- Clone the repository:
git clone https://github.com/your-username/cinematxt.git
- Install the required dependencies:
cd cinematxt
npm install
- Set up the database:
Create a MySql database for the project. Update the database configurations url in the environment variables or .env file. Example :
DATABASE_URL="mysql://root@localhost:3306/cinematxt"
- Migrate and generate prisma client in your project
- Migrate prisma
npx prisma migrate dev --name init
- Generate Prisma client
npx prisma generate
- Run the development server: You can run the development server by using this command
npm run dev
Open your web browser and visit http://localhost:3000 to access the CinemaTxt website.
To learn more about Next.js and Prisma usage in this web take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
- Prisma Documentation - learn about Prisma and Prisma client.