Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/strawhat19/vite-app
A simple app made with Vite, React, React Router, React Router DOM, React Lazy, React Suspense, TypeScript, Context API, and SASS. Will implement Firebase for Auth, Storage, and Database purposes, as well as some Server Side Rendering soon.
https://github.com/strawhat19/vite-app
javascript node react sass typescript vite
Last synced: about 11 hours ago
JSON representation
A simple app made with Vite, React, React Router, React Router DOM, React Lazy, React Suspense, TypeScript, Context API, and SASS. Will implement Firebase for Auth, Storage, and Database purposes, as well as some Server Side Rendering soon.
- Host: GitHub
- URL: https://github.com/strawhat19/vite-app
- Owner: strawhat19
- License: mit
- Created: 2022-11-17T06:15:14.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-23T21:17:02.000Z (almost 2 years ago)
- Last Synced: 2023-07-07T08:41:35.644Z (over 1 year ago)
- Topics: javascript, node, react, sass, typescript, vite
- Language: TypeScript
- Homepage: https://strawhat19.github.io/Vite-App/
- Size: 2.48 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vite App
![License](https://img.shields.io/github/license/strawhat19/Vite-App)
![State](https://img.shields.io/github/deployments/strawhat19/Vite-App/github-pages)
![Total Lines](https://img.shields.io/tokei/lines/github/strawhat19/Vite-App)
![Repo Size](https://img.shields.io/github/repo-size/strawhat19/Vite-App)
![Release](https://img.shields.io/github/v/release/strawhat19/Vite-App)![Vite](https://img.shields.io/badge/vite-%23646CFF.svg?style=for-the-badge&logo=vite&logoColor=white)
![React](https://img.shields.io/badge/react-%2320232a.svg?style=for-the-badge&logo=react&logoColor=%2361DAFB)
![TypeScript](https://img.shields.io/badge/typescript-%23007ACC.svg?style=for-the-badge&logo=typescript&logoColor=white)
![SASS](https://img.shields.io/badge/SASS-hotpink.svg?style=for-the-badge&logo=SASS&logoColor=white)
![Firebase](https://img.shields.io/badge/Firebase-039BE5?style=for-the-badge&logo=Firebase&logoColor=white)![Screenshot of Application](./src/assets/v03.png)
## About
A simple app made with Vite, React, React Router, React Router DOM, React Lazy, React Suspense, TypeScript, Context API, and SASS. Will implement Firebase for Auth, Storage, and Database purposes, as well as some Server Side Rendering soon.## Table of Contents
* [About](#about)
* [Installation](#installation)
* [Usage](#usage)
* [Licensing](#licensing)
* [Questions](#questions)## Installation
```
git clone [email protected]:strawhat19/Vite-App.git
cd Vite-App/
npm install
npm run dev
```## Usage
You can view the deployed application at https://strawhat19.github.io/Vite-App/You can view the code at https://github.com/strawhat19/Vite-App
### Add a page
```
In the src/ directory add a new folder (/newpage)
Place an index.html inside it (/newpage/index.html)
Add necessary imports & Change Title (New Page)Write the body
Add the necessary entry file (/newpage/server.tsx)import * as React from 'react';
import NewPage from './newpage';
import * as ReactDOM from 'react-dom/client';ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
)Add the necessary render file or component (/newpage/newpage.tsx)
Make the component with necessary imports & shared state as neededGo to vite.config.ts
Add new inputGo to server.tsx (main one in /src)
Add route for new pageGo to app.tsx
Add relative paths for this page
Conditionally render the component in devGo to /components/header
Add new link to both header and pageheader
```## Licensing
####
MIT LicenseCopyright (C) 2012-2023 by various contributors (see AUTHORS)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
Copyright 1998 by the Massachusetts Institute of Technology.Permission to use, copy, modify, and distribute this software and its
documentation for any purpose and without fee is hereby granted, provided that
the above copyright notice appear in all copies and that both that copyright
notice and this permission notice appear in supporting documentation, and that
the name of M.I.T. not be used in advertising or publicity pertaining to
distribution of the software without specific, written prior permission.
M.I.T. makes no representations about the suitability of this software for any
purpose. It is provided "as is" without express or implied warranty.
#### https://opensource.org/licenses/MIT## Questions
#### GitHub Profile: [*strawhat19*](https://github.com/strawhat19)
#### Contact me or ask me questions at [[email protected]](mailto:[email protected]).