Code Monkey home page Code Monkey logo

karansinghbisht / gemini-club-inductions-server Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 1.67 MB

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.

Shell 58.75% Dockerfile 5.68% JavaScript 23.21% HTML 7.37% CSS 4.99%

gemini-club-inductions-server's Introduction

Gemini-Club-Inductions-Server

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.

Setup Instructions

  1. Clone the repository:

    git clone https://github.com/KaranSinghBisht/Gemini-Club-Inductions-Server.git
    cd Gemini-Club-Inductions-Server
  2. Build and run the Docker containers:

    docker-compose up --build -d

Webpages Access

Login Page

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
    • Mentor User:
      • Username: john_mentor
      • Password: password123
    • Mentee User:
      • Username: jane_mentee
      • Password: password123

Home Page

After logging in, users are redirected to the home page. The displayed user details depend on the logged-in user's role.

User Details

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

PHPMyAdmin is available for viewing the database and performing database operations.

Important Scripts

To Implement the Cronjob

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.

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:

/path/to/setQuiz.sh

This will ensure that the script runs every time the mentee logs in, displaying the quiz questions if available.

Directory Structure

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/

Additional Information

Database Configuration:

The database configuration is set in the docker-compose.yml file. Make sure to update it according to your setup.

Server Port:

The Node.js server runs on port 5000. This can be configured in the app.js file.

gemini-club-inductions-server's People

Contributors

karansinghbisht avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.