Save time in development set up.
- UI - Tailwindcss / ShadCn
- Authentication - AWS Cognito
- API client - Axios
- Getting Started
- Project Structure
- Environment Variables
- Available Scripts
- Adding Dependencies
- Building for Production
- Useful Resources
Before you begin, ensure you have the following installed on your machine:
-
Clone the repository:
git clone https://github.com/your-username/your-repo.git cd your-repo
-
Install dependencies
npm install # or yarn install
-
Set up environment variables Copy the .env.example file to .env and update it with your environment-specific variables.
cp .env.example .env
-
Start the development server
npm run dev # or yarn dev
This will start the Vite development server and open your React app in the default browser.
Your Vite React project is organized into the following structure:
├── src
│ ├── components # Reusable UI components
│ ├── lib # Utility functions and libraries
│ ├── pages # Page components (e.g., Home, About, etc.)
│ ├── service
│ │ ├── axios # Axios configuration and HTTP requests
│ │ ├── amplify # AWS Amplify configuration and utility functions
│ ├── App.jsx # Main app component
│ ├── main.jsx # Entry point for the application
│ └── index.html # HTML template for the app
├── .env.example # Example environment variables
├── vite.config.js # Vite configuration
├── package.json # Project metadata and scripts
└── README.md # Project documentation (this file)