Skip to content
/ tgv Public template

Typescript + Github Pages + Vite, and more...

License

Notifications You must be signed in to change notification settings

jcommaret/tgv

Repository files navigation

TGV

Project

TGV is a boilerplate for building websites with Vite.js, React, TypeScript, SCSS, deployed on GitHub Pages, it also features react-router navigation and json files for routes, navigation, content, assets. And a 404.html that redirects lost pages to the homepage using hashrouter.

Prerequisites

Features

To do

  • Improve responsive assets
  • More components

Installation

  • Clone the repository
  • Open a terminal in the project folder
  • Run npm install to install the dependencies

Development

  • Run npm run dev to start the development server

Deployement

  • In package.json, change the homepage path to your repository name.
  • Open a terminal in the project folder
  • Run npm run deploy to deploy the project on GitHub Pages

Your are done.

Folder structure

  • 404.html
  • src
    • assets
      • images.tsx
    • data
      • nav.json
    • components
      • footer
        • index.tsx
        • index.scss
      • nav
        • index.tsx
        • index.scss
    • styles
      • utils
        • _breakpoints.scss
        • _colors.scss
        • _fonts.scss
        • _mixins.scss
    • pages
      • Root
        • index.tsx
        • index.scss
      • Home
        • index.tsx
        • index.scss
      • About
        • index.tsx
        • index.scss
    • main.tsx