A modern React application built with Vite, and Outseta set to use the on-page embed mode.
-
Prerequisite
- An Outseta account set up with at least one plan and one email list.
-
Install Dependencies
npm install
-
Configure Outseta
Copy the
.env.examplefile to.env:cp .env.example .env
Edit the
.envfile and set theVITE_OUTSETA_DOMAINenvironment variable to your Outseta domain.And set the
VITE_OUTSETA_NEWSLETTER_IDenvironment variable to the ID of the Outseta email list you want to use. -
Start Development Server
npm run dev
This will start the development server at
http://localhost:5173 -
Build for Production
npm run build
npm run dev- Start development server with hot reloadnpm run build- Build for productionnpm run lint- Run ESLintnpm run preview- Preview production build locally
project-root/
├── public/ # Static assets
├── src/
│ ├── components/ # Reusable React components
│ ├── App.jsx # Main application component
│ └── main.jsx # Application entry point
├── index.html # HTML entry point
└── vite.config.js # Vite configuration
- Outseta - Authentication, User Management, Billing, etc.
- React - UI Library
- Vite - Build tool and development server
- ESLint - Code linting
- Fork the repository
- Create a new branch (
git checkout -b feature/amazing-feature) - Make your changes
- Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.