New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@pelusa/create-react-ts-boilerplate

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pelusa/create-react-ts-boilerplate

React/Typescript Starter Project

latest
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

React Typescript App Boilerplate

A boilerplate/starter project for quickly building React projects using Typescript, Material UI, React Router and more.

By running a single command, you will get a production-ready React App installed and fully configured on your machine.

Quick Start

To create a project, simply run:

npx @pelusa/create-react-ts-boilerplate <project-name>

Or

npm init nodejs-express-app <project-name>

Manual Installation

If you would still prefer to do the installation manually, follow these steps:

Clone the repo:

git clone --depth 1 https://github.com/tomascatena/react-boilerplate
cd react-boilerplate
npx rimraf ./.git

Install the dependencies:

npm install

Set the environment variables:

cp .env.example .env

# open .env and modify the environment variables (if needed)

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

The page will reload if you make edits.
You will also see any lint errors in the console.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

Project Structure

src\
 |--assets\         # Globally available assets like images, svgs, videos, etc
 |--components\     # Components used in the project
 |--constants\      # Constants like API Endpoints, routes, etc
 |--hooks\          # Custom React hooks
 |--pages\          # All the pages of the project
 |--store\          # Redux store
 |--themes\         # MUI themes
 |--typings\        # Types
 |--App.js          # React app
 |--index.js        # App entry point

Keywords

react

FAQs

Package last updated on 15 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts