This is a full-stack e-commerce application that allows users to browse products, add them to their cart, and make purchases. The application is divided into two main parts: the API and the frontend.
The backend API is built with Node.js and Express. It provides endpoints for:
- User authentication and authorization
- Product management (CRUD operations)
- Cart management
- Order processing
POST /api/register- Register a new userPOST /api/login- Login a userGET /api/verify/:token- Verify a user's emailGET /api/profile/:userId- Get user profile by IDPOST /api/addresses- Store a new address for the current userGET /api/addresses/:id- Retrieve all addresses for the current userPOST /api/orders- Store all orders to backendGET /api/orders/:userId- Get all orders of user by ID
The frontend is built with React Native and provides a user-friendly interface for interacting with the API. It includes:
- User registration and login forms
- Product listing and detail pages
- Shopping cart management
- Checkout process
- Responsive design
- State management with Redux
- Form validation
- Error handling
The backend application is deployed on Render.com. API Url
To get a local copy up and running, follow these steps:
- Node.js
- npm
- Clone the repo
git clone https://github.com/your-username/ecommerce-app.git
- Install NPM packages
cd ecommerce-app/frontend npm install cd ../api npm install
- Start the backend server
cd api npm start - Start the frontend server for react native
cd frontend npx expo start
Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Project Link: https://github.com/me-AC/ecommerce-app