Zomato Restaurant Reservation System
Step 1: Clone the repository
git clone https://github.com/kashish0603/WorkIndia-SDE-API.git
Step 2: Create a config.js file for Database connection
touch config.js
Step 3: Write the below text in config.js file
module.exports = {
db: {
host: 'localhost',
user: 'root',
password: 'YOUR_PASSWORD',
database: 'DATABSE_NAME'
},
adminApiKey: 'YOUR_API_KEY',
JWT_SECRET: 'YOUR_JWT_SECRET_KEY'
};
Step 4: Run the requirements.txt file
To start the server:
node server/index.js
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
username VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL,
email VARCHAR(255) NOT NULL UNIQUE
);
CREATE TABLE dining_places (
place_id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
address VARCHAR(255),
phone_no VARCHAR(15),
website VARCHAR(255),
operational_hours JSON,
booked_slots JSON
);