Coder Social home page Coder Social logo

bike-rental-nextjs's Introduction

1. Getting Started

node v18.13.0

First, run:

yarn install

Create a new .env file from .env.example

Run the development server:

yarn dev

Open http://localhost:3000 with your browser to see the result.

2. VSCode Extension

  • ESLint *
  • Prettier *
    • After install, go to vscode setting ( CTRL + , ):
      • Find formatter, set default formatter to prettier
      • Turn on format on save
  • Code Spell Checker

3. WorkFlow

The most important rule of this workflow, is that the developer who is writing the code is responsible for making sure it goes through the entire process smoothly and in a timely manner.

New Code

Create Branch

  1. Update the main branches to latest version(s)
  • Always branch from the place it will be merged back into
  1. Create branch
  • git checkout -b [branch_name] (ex: git checkout -b issue_2)

Make Changes

  1. Make change
  • Make sure all watch tasks are running (build, unit tests)
  1. Test
  • Run full test suite locally
  1. Commit with descriptive name

Push changes

  1. git push origin [branch_name]

Pull Request

  1. Open pull request into a main branch
    • title: Issue_XX: [description]
    • If pull request have CONFLICT
      • git checkout main
      • git pull origin main
      • git checkout [branch_name]
      • git merge main
      • fix all conflicts in local
      • git add .
      • git commit -m "[branch_name] fix conflict"
      • git push origin [branch_name]

Code Review

  1. Other devs should review code and leave notes

    • no confusing code
    • check for potential issues
    • any architectual improvements
  2. Code owner is responsible for making any necessary fixes any pushing them up

    • Follow same commit process

bike-rental-nextjs's People

Contributors

azar-dt avatar phantrang01 avatar minhtu1082001 avatar phucduongminh avatar nhatminh2208 avatar nghiemtuan1411 avatar congvt109 avatar haibh-wanosoft avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.