Welcome to the MonkSquare E-commerce Website! This project is a small local e-commerce brand designed to showcase and sell our unique products. You can visit our Instagram page here.
MonkSquare is an e-commerce website built using modern web technologies to provide a seamless shopping experience. Users can browse products, authenticate securely, and make payments with ease.
- Frontend: HTML, CSS, JavaScript
- Bundler: Vite
- Authentication: Firebase
- Backend: NodeJs, Express
- Payment Integration: Stripe
- Product Display: Browse through our catalog of unique products.
- User Authentication: Secure sign-in and sign-up using Firebase.
- Secure Payments: Integrated Stripe for secure payment processing.
- Responsive Design: Mobile-friendly design to provide a great user experience on all devices.
Make sure you have the following installed:
To get a local copy of this project up and running, follow these steps:
-
Clone the Repository:
- Open your terminal.
- Run the following command to clone the repository to your local machine:
git clone https://github.com/username/monksquare.git
-
Navigate to the Project Directory:
- Change to the project directory with the following command:
cd monksquare -
Install Dependencies:
- Ensure you have Node.js and npm installed on your machine.
- Run the following command to install the project dependencies:
npm install
-
Start the Development Server:
- Use the following command to start the development server with Vite:
npm run dev
-
Open the Project in Your Browser:
- Once the development server is running, open your browser and go to:
http://localhost:5173(The URL might vary depending on the configuration provided by Vite. Check your terminal for the exact URL.)
-
Navigate to the main page:
Open your browser and go to
http://localhost:5173(or the URL provided by your development server). -
Sign In or Sign Up:
Click on the
SIGN INorSIGN UPlinks to create an account or log in. -
Browse Products:
Explore the available products and add them to your cart.
-
Add to Cart:
Click on the
Add to Cartbutton for any product you wish to purchase. If you are not logged in, you will be redirected to the sign-in page. -
Checkout:
Proceed to the checkout page and complete the payment process using Stripe. For the backend created a server.js file that creates a checkout session .
npm install express stripe dotenv ejs
Install nodemon for better use .
To run the backend server:
node server.js
We welcome contributions to enhance MonkSquare! To contribute, please follow these steps:
-
Fork the repository:
Click the
Forkbutton at the top right of this page to create a copy of this repository under your GitHub account. -
Clone your fork:
git clone https://github.com/your-username/monksquare.git
-
Create a branch for your feature or bug fix:
git checkout -b feature/your-feature-name
-
Make your changes:
Implement your feature or fix the bug.
-
Commit your changes:
git commit -m "Description of your changes" -
Push to your branch:
git push origin feature/your-feature-name
-
Open a Pull Request:
Go to the original repository on GitHub and create a pull request from your forked repository.
