项目作者: RinMinase

项目描述 :
📝🚀 Rin Minase's Anime Database using Angular rendered with Ivy and deployed to Netlify using Circle CI
高级语言: TypeScript
项目地址: git://github.com/RinMinase/anidb.git
创建时间: 2018-04-02T08:44:21Z
项目社区:https://github.com/RinMinase/anidb

开源协议:MIT License

下载


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.

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

  3. Install the dependencies then run the project

    1. yarn install
    2. 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:

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

Project Structure

  1. .
  2. ├── public/ # Public assets folder
  3. ├── dist/ # Compiled production code
  4. ├── src/ # Project source code
  5. ├──<module-name>/
  6. ├── <component> # Module sub-components
  7. └── index.tsx # Module entry point
  8. ├── common/ # Project-wide reusable code
  9. ├── components/ # Common components
  10. ├── pages/ # Common pages (404 / 500 pages)
  11. ├── providers/ # Context provider components
  12. └── index.ts # Entry point for common imports
  13. ├── main.tsx # Main module
  14. ├── routes.tsx # Routes file
  15. ├── service.ts # Axios pre-setup
  16. └── ... # Other source code files
  17. ├── .editorconfig # IDE / Editor configuration
  18. ├── .env # Environment file
  19. ├── index.html # Main HTML file (Vite bundler entry point)
  20. ├── tsconfig.json # Source code TypeScript configuration file
  21. ├── tsconfig.node.json # Vite TypeScript configuration file
  22. └── ... # 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