tsg-iitkgp / noticeboard

Noticeboard for Technology Coordinator(s) to share notices and updates to students and make public announcements.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Contributors Forks Stargazers Issues MIT License

Technology Noticeboard

Official updates regarding tech facilities of IIT Kharagpur
Report Bug · Request Feature

Table of Contents

About the project

This noticeboard displays important announcements about IIT Kharagpur's technical facilities and related events. It serves as a central location for the campus community to find up-to-date information on things like network downtime, maintenance schedules, ERP issues, general guidelines related to tech in IIT KGP and more.

(back to top)

Serving the static site

Use any webserver to host the files in this repository. Following are the quite popular ones:

Note

We use nginx in the docker container.
Configuration file for nginx: nginx.conf.

  1. Update details of Present Technology Coordinator(s).
    • Save pictures in ./assets with roll number as the file name. For example:
      21IM10009.png
    • Update techcoordi.json. It has the following structure
      [
        {
          "id": "21IM10009",
          "name": "Arpit Bhardwaj",
          "email": "arpitbhardwaj.iitkgp@gmail.com",
          "tele": "9761667733",
          "linkedin": "https://linkedin.com/in/proffapt"
        }
      ]
  2. Run the docker container
    sudo docker-compose up -d
  3. Visit http://localhost:8001/

Note

Alternatively you can run python3 -m http.server 8001 to serve the files instead of docker or nginx

(back to top)

Creating notices

Make sure you have python installed. Once that is verified, follow the steps below:

  1. Run the create-notice.py script
    cd scripts/
    python3 create-notice.py
  2. Enter the title in the prompt
  3. Type or Paste the notice
  4. Press Enter to go to the new line
  5. Press Ctrl+D to complete the notice

Syncing with server

  1. Move to ./scripts/ directory
  2. Configure the environment variables.
    • Copy .env.example as .env
    • Fill the following self-explanatory template
      SERVER_USERNAME=pi
      SERVER_IP=192.168.17.69
      SERVER_DIR=/home/pi/noticeboard/notices
      SERVER_PASSWORD=mysecretpassword 
      # Leave SERVER_PASSWORD empty if SSH through SSH keys is configured
  3. Run the create-notice.py script with --sync argument
    python3 create-notice.py --sync
  4. Follow steps 2-5 of Creating Notices

(back to top)

Contact

📫 Technology Students' Gymkhana - TSG's Facebook TSG's Instagram TSG's Twitter TSG's LinkedIn TSG's Blog

Present Technology Coordinator(s)

Note

For any ideas, suggestions or queries regarding this project, mail us at tech.coordi@iitkgp.ac.in

Name Email Phone No.
Arpit Bhardwaj arpitbhardwaj.iitkgp@gmail.com +91-9761667733
Parth Gupta guptaparth.iitkgp@gmail.com +91-7620821543

(back to top)

Additional Documentation

(back to top)

About

Noticeboard for Technology Coordinator(s) to share notices and updates to students and make public announcements.

License:GNU General Public License v3.0


Languages

Language:JavaScript 30.3%Language:CSS 28.4%Language:Python 22.6%Language:HTML 15.7%Language:Shell 1.9%Language:Dockerfile 1.1%