Skip to content

ivbutsykin/int20h-web-template

Repository files navigation

template

Hackathon Hero Toolkit

Empowering innovation with a comprehensive codebase for rapid development

About The Project

Screenshot 2024-01-29 at 12 13 44

Modern web template with React, Material UI, React Query, React Router, Formik with Yup validation, Zustand for state management, and i18n for internationalization.

Built With

  • Vite
  • React
  • MUI
  • React Query
  • React Router

Prerequisites

  • Node.js v20 and later

    nvm install 20
    nvm use 20
  • degit

    npm install -g degit

Installation

  1. Download the repository
    degit git@github.com:ivbutsykin/int20h-web-template.git
  2. Install NPM packages
    npm install

Usage

  1. You can easily remove the example components by using the following commands
cd src/components/molecules/ ; rm -rf * ; touch .gitkeep ; cd ../../../
cd src/components/organisms/ ; rm -rf * ; touch .gitkeep ; cd ../../../
cd src/components/pages/EntryPage ; cd ../../../../
cd src/constants ; rm validation.js users.js; cd ../../
cd src/api ; rm users.js ; cd ../../
cd src/assets ; rm -rf * ; touch .gitkeep ; cd ../../
  1. Change the default favicon in the public folder with your own, and make sure to update the index.html file with the new favicon path and the correct title.

  2. To remove rest of the example code find and replace code in the following files

  • src/components/templates/EntryTemplate/EntryTemplate.jsx
import { Box } from "@mui/material";

function EntryTemplate() {
  return <Box />;
}

export default EntryTemplate;
  • src/components/templates/LetteringTemplate/LetteringTemplate.jsx
import { Box } from "@mui/material";

function LetteringTemplate() {
  return <Box />;
}

export default LetteringTemplate;
  • src/components/pages/NotFoundPage/NotFoundPage.jsx
import LetteringTemplate from "../../templates/LetteringTemplate/LetteringTemplate";

function NotFoundPage() {
  return <LetteringTemplate />;
}

export default NotFoundPage;
  • src/components/pages/ErrorPage/ErrorPage.jsx
import LetteringTemplate from "../../templates/LetteringTemplate/LetteringTemplate";

function ErrorPage() {
  return <LetteringTemplate />;
}

export default ErrorPage;
  • src/components/pages/LocalisationFallbackPage/LocalisationFallbackPage.jsx
import LetteringTemplate from "../../templates/LetteringTemplate/LetteringTemplate";

function LocalisationFallbackPage() {
  return <LetteringTemplate />;
}

export default LocalisationFallbackPage;
  • src/constants/api.js
export const BASE_URL = "";
  • src/locales/en.json
{}
  • src/locales/uk.json
{}
  1. Run the development server

    npm run dev
  2. Remove README.md or replace it with your own

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published