This project is a simple Invitation Codes Generator implemented in Node.js with MySQL as the database. It allows you to generate unique invitation codes, store them in a MySQL database, and validate the codes.
- Generate random and unique invitation codes.
- Store generated codes in a MySQL database.
- Validate invitation codes for authenticity.
Before you begin, ensure you have met the following requirements:
- Node.js installed
- MySQL installed and running
- MySQL database created for this project
-
Clone the repository:
git clone https://github.com/srivarshithdaladuli/Invitation-Codes-Generator.git
-
Navigate to the project directory:
cd Invitation-Codes-Generator
-
Install dependencies:
npm install
-
Configure your MySQL database connection by editing the
app.js
file. -
Run the database migration to create the necessary tables:
npm run migrate
-
Run the following command to start the development server:
node app.js
You can customize the MySQL database connection settings in the app.js
file.
- host: 'localhost'
- user: 'root'
- password: 'Root'
- database: ' '
Feel free to contribute to this project by opening issues or pull requests.
This project is licensed under the MIT License - see the LICENSE file for details.