This is the code repository for the website. Serverless frontend built with Next.js + Tailwind CSS. Hosted on Netlify.
- First clone the repository:
git clone https://github.com/V1Michigan/v1.git
. - Make sure you enter the repository through terminal
cd <FilePath>/v1
. - Install dependencies:
yarn install
. We DO NOT use npm for this. - Begin Devving:
yarn dev
. This will allow you to access a dev version of the site @localhost:3000
that will update automatically as you save files. - Create a new branch for your NEW feature:
git checkout -b [FEATURE_NAME]
. If you want to go to an existing feature:git checkout [FEATURE_NAME]
. - Ask another team member for the latest
.env
file. - When you finish a part of your feature and wish to push the changes to the remote repository:
git add [changed_files]
(replacechanged_files
with the actual file names you changed)git commit -m "meaningful commit message goes here"
git push --set-upstream origin [FEATURE_NAME]
(the next time you push to this branch you can just saygit push
).
We use ESLint + Prettier to lint our code and enforce consistent style. GitHub Actions automatically runs these linting tools when you push to the remote repository.
Use npm run lint:check
to check for linting/style errors, and npm run lint:fix
to automatically fix them.
We'd recommend using an ESLint plugin for your editor to lint and format your code as you write it.