This project aims to provide a react boilerplate with all basic configuration pre-configured. We are using MUI as base library to extend the Theme module and create reuseable components.
The react app is pre configured with mui material theme , auth guards , notification provider , error boundary , routes , page layouts , vite package bundler and many reuseable components inside the components directory .
To Use the template
The App comes pre-configured with docker , To deploy the app on server/EC2 machine you need to install docker and docker compose and set the required env variables mentioned in docker-compose.yml and run docker compose up , the app will connect to port 80 and will be available on static ip address of EC2 machine.
import"./App.css";import{Formik}from"formik";import*asYupfrom"yup";// Creating schemaconstschema=Yup.object().shape({email:Yup.string().required("Email is a required field").email("Invalid email format"),password:Yup.string().required("Password is a required field").min(8,"Password must be at least 8 characters"),});functionApp(){return(<>{/* Wrapping form inside formik tag and passing our schema to validationSchema prop */}<FormikvalidationSchema={schema}initialValues={{email:"",password:""}}onSubmit={(values)=>{// Alert the input values of the form that we filledalert(JSON.stringify(values));}}>{({values,errors,touched,handleChange,handleBlur,handleSubmit,})=>(<divclassName="login"><divclassName="form">{/* Passing handleSubmit parameter tohtml form onSubmit property */}<formnoValidateonSubmit={handleSubmit}><span>Login</span>{/* Our input html with passing formik parameters like handleChange, values, handleBlur to input properties */}<inputtype="email"name="email"onChange={handleChange}onBlur={handleBlur}value={values.email}placeholder="Enter email id / username"className="form-control inp_text"id="email"/>{/* If validation is not passed show errors */}<pclassName="error">{errors.email&&touched.email&&errors.email}</p>{/* Our input html with passing formik parameters like handleChange, values, handleBlur to input properties */}<inputtype="password"name="password"onChange={handleChange}onBlur={handleBlur}value={values.password}placeholder="Enter password"className="form-control"/>{/* If validation is not passed show errors */}<pclassName="error">{errors.password&&touched.password&&errors.password}</p>{/* Click on submit button to submit the form */}<buttontype="submit">Login</button></form></div></div>)}</Formik></>);}exportdefaultApp;
With ARC form components
All data, errors and styles are managed internally
At ARC, we are driven by a steadfast mission – to empower developers and organizations with seamless solutions for both backend and frontend application development and deployment. Our unwavering commitment to the highest security and industry standards ensures that every facet of app development contributes to a smooth and secure user experience.
In our dedication to the open-source community, we actively contribute to a diverse range of projects that reflect our values of innovation and collaboration. Some of our notable contributions include:
React Boilerplate: Discover our meticulously crafted React Boilerplate application, designed to accelerate your development process.
React Boilerplate
Telemed App: The ARC Telemedicine App establishes seamless communication channels between medical professionals and patients through video calls and chat. This app is meticulously crafted using the ARC React Boilerplate.
Telemed App UI
Storybook: Components within the ARC React Boilerplate through our comprehensive Storybook.
Storybook
ARC API: ARC API, is a collection of pre-built microservices designed to accelerate the development timeline for enterprise projects. These services address common challenges encountered by large enterprises during the development of cloud-native platforms for digital transformation initiatives or new product creation
ARC Lambda: Easily deploy your services to a serverless environment on AWS.
ARC IAC: Explore the intricacies of Infrastructure as Code with our comprehensive documentation on ARC IAC.