This project demonstrates CRUD (Create, Read, Update, Delete) operations using Vite (a build tool for modern web development) and Supabase (an open-source alternative to Firebase).
- Vite: A build tool that provides a fast and optimized development environment for modern web projects, leveraging esbuild for bundling.
- Supabase: An open-source Firebase alternative that offers a real-time database service and authentication system.
- Vue.js: A progressive JavaScript framework used for building user interfaces.
- Create: Add new records to the database.
- Read: Fetch and display records from the database.
- Update: Modify existing records.
- Delete: Remove records from the database.
Follow these instructions to get the project up and running on your local machine.
- Node.js (version >= 14.0.0)
- npm (Node.js package manager, comes with Node.js installation)
-
Clone the repository:
git clone https://github.com/yVijayMakkad/CRUD-operations-Using-Vite-Supabase.git
-
Navigate into the project directory:
cd CRUD-operations-Using-Vite-Supabase -
Install dependencies:
npm install
-
Supabase Setup:
- Create a free account on Supabase.
- Create a new project and obtain your Supabase URL and public API key.
- Replace the placeholders in
.envwith your Supabase URL and API key.
-
Environment Variables:
-
Rename
.env.exampleto.env. -
Update
.envwith your Supabase URL and API key:VITE_SUPABASE_URL=your_supabase_url VITE_SUPABASE_KEY=your_supabase_public_api_key
-
Start the development server:
npm run devVisit http://localhost:3000 in your browser to view the application.
To build the project for production:
npm run buildThis will create an optimized build in the dist directory.
Contributions are welcome! Feel free to open issues and pull requests.
This project is licensed under the MIT License.
Feel free to customize this README according to your project's specific details and structure. Happy coding!