Welcome to the Gemini Club Inductions Server repository! This repository hosts essential scripts designed for configuring an induction management server. These scripts streamline the induction process for new members by offering key functionalities accessible via command-line aliases.
-
Clone the repository:
git clone https://github.com/KaranSinghBisht/Gemini-Club-Inductions-Server.git cd Gemini-Club-Inductions-Server
-
Build and run the Docker containers:
docker-compose up --build -d
Access the login page where users can log in with their credentials.
- URL: http://localhost:5000/login
- Sample Login Credentials:
- Core User:
- Username:
DAdmin
- Password:
password123
- Username:
- Mentor User:
- Username:
john_mentor
- Password:
password123
- Username:
- Mentee User:
- Username:
jane_mentee
- Password:
password123
- Username:
- Core User:
After logging in, users are redirected to the home page. The displayed user details depend on the logged-in user's role.
Different users have different levels of access:
- Core Users: Can see all users' details.
- Mentors: Can see only their mentees' details.
- Mentees: Can see only their own details.
PHPMyAdmin is available for viewing the database and performing database operations.
- URL: http://localhost:9090
- Login: Use the MySQL root credentials set in
docker-compose.yml
.
crontab -e
# Run displayStatus script daily
0 0 * * * displayStatus.sh
# Run cleanupDeregistered script every three days and Sundays at 10:10 AM in May, June, and July
10 10 */3,7 5-7 * cleanupDeregistered.sh
setQuiz To notify mentees about the new quiz and prompt them to answer questions, we can modify their shell profile to call the setQuiz.sh script on login.
Add the following line to the .bashrc file of each mentees:
bash Copy code /path/to/setQuiz.sh This will ensure that the script runs every time the mentee logs in, displaying the quiz questions if available.
To notify mentees about the new quiz and prompt them to answer questions, we can modify their shell profile to call the setQuiz.sh
script on login.
Add the following line to the .bashrc
file of each mentees:
/path/to/setQuiz.sh
This will ensure that the script runs every time the mentee logs in, displaying the quiz questions if available.
Gemini-Club-Inductions-Server/
├── Dockerfile
├── docker-compose.yml
├── init.sql
└── gemini-inductions/
├── app.js
├── config/
├── controllers/
├── Dockerfile
├── middleware/
│ └── auth.js
├── models/
├── node_modules/
├── package.json
├── package-lock.json
├── public/
│ ├── login.html
│ ├── style.css
│ └── home.html
└── routes/
The database configuration is set in the docker-compose.yml
file. Make sure to update it according to your setup.
The Node.js server runs on port 5000
. This can be configured in the app.js
file.