CSE115-project / nextjs-ff

0 stars 1 forks source link

Getting Started with FridayFinder

Install:

Clone Repo:

git clone https://github.com/kainoabrabo/nextjs-ff.git

cd nextjs-ff

Install Docker Desktop then open Docker Desktop

To start the Next.js app in Docker:

docker compose up --build --force-recreate 

Open http://localhost:3000 with your browser.

ESlint

Run every time you make changes before and after testing, and before commit.

npm run lint

Code formatter: Prettier

Run formatter on VSCode:

option + shift + f

To stop the Next.js app in Docker:

ctrl + c

Before you start a new feature:

  1. Initial Status and Pull
  2. Create a new feature or bugfix branch
  3. ~ DEV ~
  4. When commiting changes, make sure to follow the steps in 'How to Commit' to make merging easy

Status and Pull

How to Branch

git checkout -b <branch name>

ex.
git checkout -b feature/user-authentication
git checkout -b bugfix/maps-component

How to Commit

git commit -m ""

ex.

git commit -m "set user location (#23)"

git commit -m "fix - update for Next 13 (#23)"

git push git checkout main git pull git merge git status