React Fastify template

Getting Started

Clone the repository

degit github:user/repo

Install Dependencies

npm i

Adding Dependencies

Please do not add dev dependencies to their own workspace

Dev dependecies

npm i --save-dev *package_name*

For Frontend

npm i -w client *package_name*

For Backend

npm i -w server *package_name*

Run development server

npm run dev

To build:

npm run build

To specify only building client add -w client the same is for server as well

Look at http://localhost:3000 to see your client and port 5000 for server(backend).

Contributing

Commit Message

To commit please follow the Conventional Commits rules

This will provide a prompt to help you write good commit messages for us to handle. This will automatically run the git commit command for staged files.

IMPORTANT: ALL MESSAGE SHOULD BE LOWERCASE

VSCode

If you want to commit in VSCode I highly recommend using this extension: Conventional Commits

You can access VSCode Conventional Commits in two ways:

  1. Command + Shift + P or Ctrl + Shift + P, enter Conventional Commits, and press Enter.
  2. Click the icon on the Source Control menu. See the image below.

Icon on the Source Control menu