Skip to content

Find and exchange items from anywhere on campus

Notifications You must be signed in to change notification settings

AnanyaGrover1/stuff

 
 

Repository files navigation

HoagieStuff

Everything on campus, from bulletin to sales, in one place.

Setup

NOTE: You will need a .env.local file from a Hoagie Project coordinator to run most of the features. Place it in your main directory. You will also need Node.js, NPM, and Yarn, there are plenty of tutorials online on how to install these. Assuming you have those tools and files, do the following to install dependencies:

yarn

and finally, run the server with:

yarn dev

As simple as that! We use yarn for everything related to dependencies so do NOT use npm install when you are trying to add new packages. Instead use yarn add.

VSCode

We use VSCode for development. Please install the following packages:

  1. ESLint
  2. Live Share

ESLint is particularly important, if everything is installed correctly, it will allow you to see style errors inside the editor which we use to make sure our code is tidy and consistent throughout the codebase (same as output from yarn lint).

Contribution

Follow this guide to setup a fork of this repository along with the upstream. Always create new branches when adding new features. For example, let's say I am adding a delete button. I would do:

# Switch to new branch called delete-button
git checkout -b delete-button

When the main branch get updated, you want to run the following:

# Fetch upstream master and merge with your repo's main branch
git fetch upstream
git checkout main
git merge upstream/main

# If there were any new commits, rebase your development branch, for example delete-button
git checkout delete-button
git rebase main

You may have to deal with merge conflicts; this will be visible and easier to deal with in VSCode. Here's a short video about how to do it.

About

Find and exchange items from anywhere on campus

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.0%
  • CSS 2.2%
  • JavaScript 0.8%