/schedu-mate

Got classes common with friends? Sync them now

Primary LanguageJavaScriptMIT LicenseMIT

ScheduMate

Winner at Hack The Mountains 3.0 MLH Track - Best use of Appwrite

ScheduMate is a web application that allows you to easily see the classes that you have in common with your friends. Friends make classes so much better!

Table of Contents

Inspiration

Do you ever reach out to your friends to compare class schedules but forget who you have classes common with when they roll around? Or have you wanted to know if any friends are in a specific class but it’s way too time consuming to ask everyone? Some university classes have over 200 students, and with so many different profs, class times and classes, it’s a hassle to compare schedules and connect with your friends before classes start.

Also getting all the information scattered in various groups and apps is a pain. Reaching different domains to get different data is quite a hassle.

What it does?

ScheduMate is a platform to support students in maintaining close relationships with their friends throughout university. It allows students to keep track of their classes in a personalized schedule, cultivate a friends list, and view their matching classes with their friends. The application allows you to enter your scheduled classes, add friends and see with who you share classes. It also provides all the important notifications and notices available on your university website. Our website does the heavy lifting so that students can have greater visibility into connecting with their peers. ScheduMate maintains a highly secure system where users can create, log in, and log out of their accounts, and the necessary information will always be readily available for them. With added features of accessing notes, and being up to date with latest news and notices of the university, ScheduMate is the one stop solution for all your university needs.

How we built it?

This Project is proudly built with Appwrite and Hosted on Digital Ocean.

Built with Appwrite

Our Frontend is designed with React and Bulma and Tailwind Framework. We also used Sass(https://sass-lang.com/) for styling.

Cloud Functions has been written in various Languages and some of the code taken from our senior's project and tweaked a bit(getting the required permissions).All Rights goes to them. To know more about it go the cloud-functions.

Challenges we ran into?

Even though our team had knowledge of various techstacks, we still had quite a hurdles.

Biswa - For him, it was his first time integrating appwrite on a react project, hosting Appwrite on Digital Ocean, settings up domain and SSL, use subdomain for appwrite and main domain for frontend. Also, he had to learn how to use Appwrite's SDK and API for the JS application. For him, setting a production server was a new experience.

Harsh - For him, it was his first time integrating Appwrite with React. Working with Appwrite SDK and state management was a major challenge for him. He collaborated with Biswa to integrate and fix the crucial bugs for the Appwrite SDK and also deployed Frontend along with Biswa.

Gunjan - For her, it was her first time particpating in a hackathon and she was quite thrilled and did a great job. She played role in building the frontend. She was the lead in designing and beautifying the website using css. She took time designing the UI for the website but achieved the desired look.

Vidhu - He was a lead in designing the UI for the website. He also helped in writing cloud functions for appwrite and helped Biswa in deploying cloud functions successfully. Deploying and writing web scraper python code and population the database was a major challenge for him.

Accomplishments that we're proud of?

We are proud that this project is ready for production and can be used readily for our university at least. Using an Open Source Backend as a Service (Appwrite). This project has been deployed successfully and can be viewed in any device.

Writing a web scraper function to get the neccessary data from the university website and populating the database was a major accomplishment for us.

Writing cloud functions and automating things for us was a huge happniessπŸ˜„.

Installation

This project is built with React and Appwrite. To run this project locally, you need to have Node.js and npm installed on your system.

To run appwrite locally, follow the instructions here. Note you must have Docker installed on your system.

To run the frontend, follow the instructions below:

git clone https://github.com/The-Powerpuff-Boys/schedu-mate
cd schedu-mate
npm install && npm start

Tu run it locally - go over to https://localhost:3000

To setup appwrite, there are some cloud functions well written for you by usπŸ˜‰. You can find them in the cloud functions. To run those cloud functions, follow the instructions here. It's recommended to install appwrite CLI to deploy those cloud functions easily. More about it here

Also edit the .env file and update the variables. This should be pretty self-explanatory although we would be happy to help you out if you face any issues. If there is feel free to create an issue.

Directory Structure

.
β”œβ”€β”€ functions # Cloud Functions
β”‚   β”œβ”€β”€ deleteUsers
β”‚   β”‚   └── lib
β”‚   β”œβ”€β”€ notification
β”‚   β”‚   └── src
β”‚   └── schedumate_setup
β”‚       └── lib
β”œβ”€β”€ public # Public Assets
└── src # React App
    β”œβ”€β”€ assets # Assets
    β”œβ”€β”€ components # Components
    β”‚   β”œβ”€β”€ CourseCard
    β”‚   β”œβ”€β”€ class
    β”‚   β”œβ”€β”€ name
    β”‚   β”œβ”€β”€ navbar
    β”‚   └── profile
    β”œβ”€β”€ context # Contexts
    └── pages # Pages
        β”œβ”€β”€ add-classes
        β”œβ”€β”€ add-mates
        β”œβ”€β”€ classes
        β”œβ”€β”€ details
        β”œβ”€β”€ home
        β”œβ”€β”€ landing
        β”œβ”€β”€ login
        β”œβ”€β”€ my-schedule
        β”œβ”€β”€ newgroup
        β”œβ”€β”€ notes
        β”œβ”€β”€ profile
        └── signup

Demo Credentials

If you want to just try out the demo, you can use the following credentials:

NOTE: For Backend server, DM me if you just want to see the credentials. I will provide you with the credentials if you want to see how it looksπŸ˜‰

What we learned?

Everyone learned something.

  • Biswa learned about deploying and setting up a production server, integrating Appwrite with React, using Appwrite's SDK and API for the JS application, using Appwrite's CLI, linking a domain to Appwrite, setting up SSL, and using subdomains for Appwrite and main domain for frontend.

  • Harsh learned Appwrite, more advanced fundamentals of React, and how to use Appwrite's SDK and API for the JS application.

  • Gunjan learned more about React and tools like Bulma and Tailwind CSS. She also learned about appwrite.

  • Vidhu learned how to write cloud functions for Appwrite, how to deploy cloud functions, how to write a web scraper in Python, and how to populate the database. He also learned about appwrite and integrating it with React.

Future Scopes

Although this project is ready, there is always scope for more improvement

  • We will use NLP to find relevant information for any subject on the internet and display it accordingly.

  • We will add a feature to add a class to the schedule by just scanning the QR code of the class.

  • Encrypting data using AES-CBC 256 bit encryption.

  • Improving the UI and UX of the website.

πŸ“Έ Screenshots Time

Contributing

Since this project was built during Hack the Mountains 3.0, we would be seldomly improving this product. However we encourage you to contribute this repo and take it more as a tutorial of how this project was built. If you have any suggesstions or want to make some changes, feel free to create a PR or an issue.

License

This project is MIT Licensed

About Us

We are The Powerpuff Rangers (formerly The Powerpuff Boys)