Authors:
Florian Catalan
Brian Coffey
Isaac Curiel
Rajbir Johar
Robert Rivera
Summary of Project, purpose, stack, etc.
- Authentication
- Static site generation
- Server side rendering
- Serverless apis
- Static data fetching
- Dynamic, protected, instant routing
- User profiles
- Orgs search, post, edit, read, delete
- Courses search, post, edit, read, delete
- Events search, post, edit, read, delete
- Comments post, edit, read, delete
- Dark mode
- Updated color scheme and layout
- Rich text editor
- Organization management
- Notification system
- Opportunities
- Pagination
- Roles collection
- Role permissions
- Add/remove admins
- Add/remove members
- Transfer ownership
- Discover sidebar
- Join/edit organizations
- Latest reviews
- Logo
- Image database
- Organization profile images
- Organization social icons/links
- Banner images for events
- University course database
- Types
Nexus is the one-stop shop for a student at UCR hosting information on different clubs, organizations, and events as well as reviews on classes provided by other students. We want the students that use this site to be as informed as possible about what is currently going on on campus.
Using the most powerful and dynamic stack, we are able to provide a near instant and seamless user experience. Our framework of choice, NextJS allows us to build and scale our application for large populations all while remaining incredibly smooth. MongoDB allows us to structure data in an intuitive way and offers easy ways to access and write data to and from the frontend without any hiccups.
List of pictures, names, and relevant websites
Hey I'm Rajbir! You can find out more about me on my Portfolio or my Github. Currently, I'm interested in automotives, especially german cars, building bespoke mechanical keyboards, and web development and design.
Hey there, I'm Isaac! Some of my interests include stationery, mainly fountain pens, and sports (Go Rams!). Check out my Github for more.
Hello, I'm Florian. 4th year CS major at UCR and you can find more from me at my LinkedIn. I enjoy playing video games, watching movies/shows, designing, and editing in my free time. Career prospects in UX/UI.
Hey, I'm Brian! I am a 4th year Computer Science major at UCR, and I am applying for my Masters in Education. Follow my Github to keep up to date with my projects! I also have many interests, such as bouldering, surfing, coffee, and really just trying anything new!
Hello, I'm Robert! I'm a 4th year Computer Science major at UCR. If you are interested in learning more about me, check out my LinkedIn and Github pages.
- Clone or fork this project on your local machine.
- Ensure you have Node and Yarn installed.
- Within the root directory, run
yarn
oryarn install
to install all required packages needed for this project. - Then run
yarn run dev
to start your local server athttp://localhost:3000
and enter this address in your favorite browser. - From here, you can edit, poke around, and watch your changes live update.
- Set up a MongoDB database either locally or with MongoDB Atlas for free.
- Once you have created your cluster and database, select Connect to begin connecting your frontend to your database.
- You will need to create a database user and note down the username and password.
- Then select the method Connect Your Application where you will be prompted with a link as represented below.
mongodb+srv://<user>:<password>@cluster0.qhvo8.mongodb.net/myFirstDatabase?retryWrites=true&w=majority
- This link represents your MONGODB_URI where you will replace
<user>
,<password>
, andmyFirstDatabase
with your respective values without<>
.
- Follow the steps listed on Google's Official OAauth2 Documentation to set up your API Console and access Google's APIs.
- After creating your project, note down the
Google Client ID
and theGoogle Client Secret
as you will need these to fill out the environment variables.
Rename .env.example
to .env.local
Set each variable on .env.local
:
MONGODB_URI
- Your MongoDB connection string.MONGODB_DB
- The name of your Database.NEXTAUTH_URL
- The canonical url of your website. Your local environment should behttp://localhost:3000
. Your production variable should be your actual domain.JWT_SIGNING_PRIVATE_KEY
- A random string of characters used to generate JWT Tokens. Next-Auth will create one for you so this is optional but highly recommended to have your own. It is currently used for Google 3rd Party Sign-In.GOOGLE_CLIENT_ID
- The ID generated by the Google API dashboard when you are setting up OAuth.GOOGLE_CLIENT_SECRET
- The password by the Google API dashboard when you are setting up OAuth.CLOUDINARY_URL
- The URL needed to store images in cloudinary.
.gitignore
should already filter the .env files but just in case, never commit your environment variables.
To deploy your local project to Vercel, push it to GitHub/GitLab/Bitbucket and import to Vercel.
.env.local
file.
MongoDB is a general purpose, document-based, distributed database built for modern application developers and for the cloud era. This example will show you how to connect to and use MongoDB as your backend for your Next.js app.
If you want to learn more about MongoDB, visit the following pages:
- Next-Auth
- Main library used for authentication.
- Used in conjunction with Google OAuth.
- Only extracts a user's name, email, and google image (for privacy)
- TipTap
- Powers our Rich Text Editor.
- Incredibly versatile and powerful.
- SWR
- Allows for revalidating data fetching so all data is up to date.
- Formik
- How our forms are made.
- CSS Modules
- Framer Motion
- What is behind most of our layout animations for an incredibly smooth interface.
- react-hot-toast
- Notifies the user with a cute toast.
- Lottie
- Makes our landing page special with animated images.
- react-dropzone
- Allows users to submit images.
- date-fns
- Allows us to use the timestone (correctly).
- Allows us to collect all the courses offered at UCR over the past 5 quarters.
- Works by submitting requests to the UCR registration website which returns a JSON response of course data that we parse, format, and upload to our database.
- Uses the Python Requests and JSON libraries.
This project has definitely tested our abilities as developers and forced us to learn and embrace challenges. Below we explain all of the major obstacles we've encountered while building this one-of-a-kind app.
I'd say the biggest issue we encountered on the frontend would probably be the animations. The difference between a good app and a great app in my opinion is how it feels in the user's hands. It should feel natural, almost as if it were an extension of their own body. And achieving that required a great sense of attention to detail and how different objects on the screen interact with each other and the user. This also includes how colors and shadows shift and ensuring that there is no resistance when using the app.
β Rajbir Johar
One obstacle was visualizing the user experience to effectively deliver the needs to all our users. Another challenge was developing an intuitive navigation system to create a flawless experience. It was important to think about the overall impression we wanted our users to have before making important decisions. Our primary goal for Nexus is to become a central part of our usersβ day-to-day lives.
β Robert Rivera
NextJS and Typescript being the bases of our stack for this web app was both exciting and daunting as Nexus would be the first time I would be working with either of these tools. It was definitely an uphill battle learning the language of these tools, but I enjoyed piecing it together and developing in the Nexus environment.
β Florian Catalan
This was the first time I realized that maybe not all the stuff taught in my theoretical CS classes was inapplicable. Structuring my backend forced me to think about how data is related to each other in order to reduce the amount of redundancies produced. This in turn helped me with fetching the right data in the fastest way possible to provide to the user.
β Rajbir Johar
During the development of the Python script something changed with the requests we were submitting and we were no longer receiving any data in the response. Since this was my first experience with this particular library lots of debugging and documentation reading ensued. While it was a relatively simple fix in the end, it took some time to figure out what was wrong and the script had to be rewritten which caused a slight delay in adding all courses to the site.
β Isaac Curiel
Dealing with images always proves to be a challenge, and this time was no exception. While we had experience from previous projects with image uploads, this time was a bit different since we were using Formik for user input, and I had trouble accessing and then passing the image data to the backend for upload.
β Isaac Curiel
This is the first time where our group of software engineers took on the task to develop a full stack web application. Prior to this, most large scale projects we completed had guidance, an objective, and little planning was needed. However, developing Nexus brought on a whole set of new experiences and challenges. When we first started with our idea, we had to decide on the main features we wanted to incorporate into the product. Along with feature planning, we needed to plan sprints and approximate how much time each feature would take. In addition, we removed and added features during development for a multitude of reasons. Sometimes some features were too complex, impacted performance, or became negligible. Thus, constant changes, new ideas, and maintaining the original idea of the project proved extremely challenging.
β Brian Coffey
In order to contribute to Nexus, you need to be a UCR student or faculty member. Therefore, Nexus will deal with sensitive information. Security is our top priority because we want all our users to feel secure while using Nexus. We believe our multi-factor authentication will give users confidence in our infrastructure.
β Robert Rivera
Initial design mockups and ideas would be scrapped and replaced with implementations that better fit the vision of Nexus. This planning process reinforced the idea of not getting too attached to your own designs. Others may have designs of their own that also accomplish the same goals as yours all while innovating in ways that may have never crossed your mind.
β Florian Catalan
UI/UX Mockups/State Diagrams
Overall System Diagram
βββ main
β βββ components
β β β βββ Reviews
β β β β βββ ListReviewPosts.tsx
β β β β βββ ...
β β βββ Header.tsx
β β βββ Layout.tsx
β β βββ ...
β βββ pages
β β βββ index.tsx
β β βββ _app.tsx
β β βββ _document.tsx
β β βββ api
β β β βββ auth
β β β βββ ...
β β βββ ...
β βββ lib
β β βββ mongodb.ts
β β βββ ...
β βββ styles
β β βββ global.css
β β βββ header.module.css
β β βββ layout.module.css
β β βββ ...
β βββ public
β β βββ assets
β β βββ ...
β βββ ...
βββ .gitignore
Our design language leans towards a simple yet tasteful color scheme and layout to create an unparalleled user experience. We want to be able to provide as much information as possible while being digestible for the user. Along with our purple brand, we offer a dark mode for those who enjoy browsing at night giving the user options and control over their experience.
ΒOur Courses page features functionality that allows users to post, read, edit, and delete course reviews. We want to be able to show all the important information that user might want to see at a glance. There are future plans on allowing the user to sort by a specific metric.
ΒOur Events page features upcoming events from organizations registered with Nexus. Here, users can see all events and their info all in one place.
ΒOur Organization page features organizations registered with Nexus. Functionality includes allowing users to become members of organizations.
ΒOur Opportunities page features opportunities posted by UCR professors. Users can see what professors are offering and apply to anything that piques their interest.
ΒThe login sequence is structured to be smooth for the user so as to provide ease of use when first trying our app. They are directly sent to log in via Google OAuth and then once they complete the login sequence, will be redirected to their profile page. There they can view all their posts and navigate to any other page.
ΒAfter the initial sign up, the user is prompted to request a role before they are able to leave reviews. At the moment there are only two options: "Professor" and "Student". Only students are able to leave reviews for courses. Once a role is selected the user's profile is updated on the database. Now when navigating to a specific course page their student role is verified and a form displayed allowing them to write a review.
ΒUsers are able to create new posts via the /reviews
page. Once they input all their information, it will be sent via a secured API and stored in our database. Our clever design allows for near instant, live updates to the page so users have a quick confirmation that their post can be seen by everyone. All data sent to the database is locked via Next-Auth api protection and fetched onto the frontend via SWR.
When creating a new organization users must first apply to be an "Organizer" from the /organizations
page. After approval their profile on the database is then updated to reflect this change. Once complete they are directed to a form where they can then create their new organization after filling in some information.
Once a user has successfully created an organization, they are able to create events for it by navigating to its respective page. They are greeted by a form where they can enter details about the event. The event is created and written to the database where it is then displayed on both the /events
and organization's page.
At the top of the /courses
page there is a search bar allowing users to filter courses based on a provided search string. When first visiting the /courses
page a request is sent to the database for a list of all courses. These courses are then returned and then displayed as cards on the page. As the user types in the search bar the page dynamically displays all courses matching the search query.
More screenshots to come.