This is a Restaurant Management System created to gain hands-on experience with Next.js and MySQL. The system manages various aspects of a restaurant, including user management and billing.
- Next.js: Frontend framework for server-side rendering and building React applications.
- MySQL: Relational database for data storage.
- Tailwind CSS: Utility-first CSS framework for styling.
- Node.js (version 16 or later)
- MySQL server
Follow these steps to set up the project on your local machine:
-
Clone the repository:
git clone <repository-url> cd <repository-folder>
-
Install the dependencies:
npm install
-
Download and install MySQL on your PC.
-
Open
connection.js
located in the/pages
folder. -
Add your MySQL credentials:
const connection = mysql.createConnection({ host: 'your-database-host', user: 'your-username', password: 'your-password', database: 'your-database-name' });
-
Run the development server:
npm run dev