Skip to content

NUS-Fintech-Society/Atlas_3_Frontend

Repository files navigation

Atlas 3 Frontend

This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.

Setup Guide

This project was set up with NodeJS v20.11.0 LTS with yarn.

  1. Install packages
    yarn
  2. Create a file .env.development.local in root folder with the following information
    VITE_IGNORE_MSW=false
    
    If you would like to ignore mock service worker, set it to true.
  3. Create another file .env.test.local in root folder with same content as above
  4. Run the development server
    yarn dev

Dependencies

We shall be using these packages

  1. React Query for data fetching.
  2. Mock Service Worker to isolate develop on the frontend. You don't have to worry about backend code.
  3. React Router for routing.
  4. date-fns for any date related data processing.
  5. useHooks for useful hooks so you never have to write custom hooks.

Please look up the documentation on their websites for intended uses and best practices.

Vite + Typescript + React

Currently, two official plugins are available:

Expanding the ESLint configuration

If you are developing a production application, we recommend updating the configuration to enable type aware lint rules:

  • Configure the top-level parserOptions property like this:
export default {
  // other rules...
  parserOptions: {
    ecmaVersion: "latest",
    sourceType: "module",
    project: ["./tsconfig.json", "./tsconfig.node.json"],
    tsconfigRootDir: __dirname,
  },
};
  • Replace plugin:@typescript-eslint/recommended to plugin:@typescript-eslint/recommended-type-checked or plugin:@typescript-eslint/strict-type-checked
  • Optionally add plugin:@typescript-eslint/stylistic-type-checked
  • Install eslint-plugin-react and add plugin:react/recommended & plugin:react/jsx-runtime to the extends list

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published