A Simple ReactJS Boilerplate :)
View Repo
Β·
Report Bug
Β·
Request Feature
Write your React App easily with Let Me React! This modern boilerplate comes with Vite for lightning-fast development, along with useful packages like react-router-dom, Axios, SweetAlert2, and more pre-configured so that you can dive into writing your code without having to worry about setting up the project.
- π Vite Integration: Lightning-fast development with Vite instead of Create React App
- π TypeScript Support: Choose between JavaScript or TypeScript for your project
- π¦ Package Manager Choice: Support for both npm and yarn
- π¨ Enhanced UI: Beautiful animated CLI experience
- β‘ Faster Build Times: Leveraging Vite's superior performance
This project requires NodeJS (version 20.19 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
10.2.4
v20.19.0BEFORE YOU INSTALL: please read the prerequisites
npm install -g let-me-reactAfter installation, you can use the following command to initialize your project:
let-me-react myprojectAlternatively, you can use npx to directly use let-me-react without installing globally:
npx let-me-react myprojectlet-me-react <project-name> [language] [options]Arguments:
<project-name>(required): Name of the React project to create[language](optional): Programming language -javascriptortypescript(defaults tojavascript)
Options:
--yarn: Use yarn as package manager--npm: Use npm as package manager (default)
Create a JavaScript project with npm:
let-me-react my-app javascript --npmCreate a TypeScript project with yarn:
let-me-react my-app typescript --yarnSimple JavaScript project (using defaults):
let-me-react my-appAlternatively, you can use npx to directly use let-me-react without installing globally:
npx let-me-react myprojectAfter initializing your project, you can use the following scripts.
npm run devRuns the app in development mode with Vite. Open http://localhost:5173 to view it in the browser. The page will hot reload as you make edits with lightning-fast HMR (Hot Module Replacement).
npm testLaunches the test runner. See the Vite testing documentation for more information.
npm run buildBuilds the app for production using Vite's optimized build process. Files are saved to the dist folder. The build is minified and optimized for the best performance.
npm run previewServes the production build locally for testing before deployment.
- π¨ Bulma CSS: A modern CSS framework based on Flexbox with beautiful components
- π SweetAlert2: Beautiful, responsive, customizable popup boxes
- π Axios: Promise-based HTTP client for making API requests
- π’ Notistack: Highly customizable notification snackbars
- π§ React Router: Declarative routing for React applications
- π FontAwesome: Vector icons and social logos (all icon sets included)
- π¬ Animate.css: Cross-browser CSS animations
- π AOS (Animate On Scroll): Smooth scroll animations
Your generated project will have the following structure:
my-app/
βββ public/
βββ src/
β βββ components/
β β βββ NavBar/
β β βββ index.jsx (or .tsx)
β β βββ style.css
β βββ screens/
β β βββ HomePage/
β β βββ AboutPage/
β β βββ LoginPage/
β βββ App.jsx (or .tsx)
β βββ main.jsx (or .tsx)
β βββ index.css
βββ package.json
βββ vite.config.js
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Apache License 2.0 Β© Suvin Kodituwakku
Suvin Nimnaka - @tikirimaarie - [email protected] Project Link: https://github.com/Suvink/let-me-react
