Skip to content

πŸ“πŸš€ Rin Minase's AniDB using Preact with Vite and deployed to Netlify using Circle CI

License

Notifications You must be signed in to change notification settings

RinMinase/anidb

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Rin Minase's Anime Database

Netlify-Status Preact Vite Node

Introduction

This project uses Preact (Faster & Leaner React) with Vite and deployed to Netlify

Getting Started

Running the project

Installations Required:

  1. Clone the project and copy the ENV template file to a new ENV file.

    git clone https://github.com/RinMinase/anidb.git
    cd anidb
    cp .env.example .env
    
  2. Modify the created ENV file based on your Firebase configuration

  3. Install the dependencies then run the project

    yarn install
    yarn start
    
  4. Fire up your browser and go to localhost:3000

Building the project

Installations Required:

  1. Fire up your terminal inside the project folder.

  2. Build the project by running:

    yarn build
    
  3. This should generate a dist/ folder inside the project folder.

Project Structure

.
β”œβ”€β”€ public/                 # Public assets folder
β”œβ”€β”€ dist/                   # Compiled production code
β”œβ”€β”€ src/                    # Project source code
β”‚   β”œβ”€β”€<module-name>/
β”‚   β”‚   β”œβ”€β”€ <component>     # Module sub-components
β”‚   β”‚   └── index.tsx       # Module entry point
β”‚   β”œβ”€β”€ common/             # Project-wide reusable code
β”‚   β”‚   β”œβ”€β”€ components/     # Common components
β”‚   β”‚   β”œβ”€β”€ pages/          # Common pages (404 / 500 pages)
β”‚   β”‚   β”œβ”€β”€ providers/      # Context provider components
β”‚   β”‚   └── index.ts        # Entry point for common imports
β”‚   β”œβ”€β”€ main.tsx            # Main module
β”‚   β”œβ”€β”€ routes.tsx          # Routes file
β”‚   β”œβ”€β”€ service.ts          # Axios pre-setup
β”‚   └── ...                 # Other source code files
β”œβ”€β”€ .editorconfig           # IDE / Editor configuration
β”œβ”€β”€ .env                    # Environment file
β”œβ”€β”€ index.html              # Main HTML file (Vite bundler entry point)
β”œβ”€β”€ tsconfig.json           # Source code TypeScript configuration file
β”œβ”€β”€ tsconfig.node.json      # Vite TypeScript configuration file
└── ...                     # Other project files

Notes:

As to why the index.html file is located on the root of the project, refer to: https://vitejs.dev/guide/#index-html-and-project-root

Project tasks

Task automation is based on Yarn scripts or NPM scripts.

Task Description
yarn dev Run dev server on http://localhost:3000/
yarn preview Run prod server on http://localhost:3000/
yarn build Build production code to dist folder
yarn lint Runs code linter manually
yarn cz Commitizen commit formatter

Built with

Deployed to

About

πŸ“πŸš€ Rin Minase's AniDB using Preact with Vite and deployed to Netlify using Circle CI

Topics

Resources

License

Stars

Watchers

Forks