GithubHelp home page GithubHelp logo

leo-henrique / leo-react-app Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 354 KB

Development environment in React for the web using Vite.

Home Page: https://leo-henrique.github.io/leo-react-app/

License: MIT License

HTML 19.36% JavaScript 10.10% SCSS 70.54%
react scss vite vite-template open-graph-protocol ui-architecture grid-system responsive sass-mixins sass-functions acessibility

leo-react-app's Introduction

leo-react-app

Screenshot of the Leo React App homepage

en pt-br

โš ๏ธ Warning

This readme was written primarily with Google Translate. I'll be happy if you make an exception for any grammatical errors!

๐Ÿ”Ž Introduction

leo-react-app it is a template / development environment in React for the web using Vite.

I like to use the term boilerplate to refer to leo-react-app because it is intended to provide a minimal but rarely unnecessary or wasteful folder and command structure in a React-based front-end app.

๐Ÿ’ป Resources

You can use two leo-react-app options. One is with SASS and the other with styled-components. Both have the following features:

With SASS:

  • SASS - JS implementation of the SASS preprocessor
  • RFS - automatic resizing of font sizes and spacing with SASS

With styled-components:

๐Ÿš€ Get Started

This repository uses the npm to manage third-party packages. Perform the Installation of Node.js which already has npm as default package manager.

Cloning the repository

Use degit to clone leo-react-app. You can mention the name you want for your project's root folder by specifying only a space after the command or use the command inside your root folder.

If you opted for SASS:

npx degit leo-henrique/leo-react-app#sass

If you opted for styled-components (no additional HTML, just minimal structure):

npx degit leo-henrique/leo-react-app#styled-components

Install the dependencies

npm install

Start the development server

A new tab localhost:5173 will open in your browser.

npm start

โš™๏ธ Configure the boilerplate for your application

With SASS:

  • In src/scss/utilities/_variables.scss, change the UI of your application.
    • $rfs-rem-value is based on the 10px value of font size root, as used in leo-css-reset.

With styled-components:

  • In src/styles/theme.js, change your application's UI.
  • In src/styles/mediaQueries.js, change the breakpoints if you want.

๐Ÿ‘จโ€๐Ÿ’ป Scripts

  • npm start - starts the development server and opens it in your browser.
  • npm run build - minifies the app for production.
  • npm run preview - locally view your production in your browser.
  • npm run deploy - deploy your application on GitHub according to the "dist" folder

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.