(PetsLove website)[https://tzuhuangyen.github.io/PetsLove/]
PetsLove is a web application built with React, Node.js, and Express that allows users to browse and purchase pet products online. It features user authentication, a shopping cart, and various alert notifications using the SweetAlert2 library.
User registration and login Browse and search for pet products Add products to the shopping cart Checkout process (not implemented yet) User profile management (update password, etc.) Alert notifications for various actions (adding to cart, removing from cart, successful login/logout, etc.)
React Node.js Express MongoDB (or another database) Vite (build tool) SweetAlert2 (for alert notifications)
- Clone the repository: git clone https://github.com/tzuhuangyen/PetsLove.git
- Install dependencies for the server: cd server && npm install
- Install dependencies for the client: cd ../client && npm install
- Create a .env file in the server directory and add your environment variables (e.g., database connection string, port number).
- Update the VITE_BACKEND_URL variable in the client/config.js file to point to your server's URL.
- Start the server: cd server && npm start
- Start the client: cd ../client && npm run dev
- Open your browser and navigate to http://localhost:3000 (or the appropriate URL based on your configuration).
- Build the client: cd client && npm run build
- The production-ready files will be generated in the client/dist directory.
Contributions are welcome! Please follow the standard GitHub workflow:
- Fork the repository
- Create a new branch for your feature or bug fix
- Commit your changes
- Push to your forked repository
- Submit a pull request
This project is licensed under the MIT License.