GO-Shop is a sample e-commerce application built using PostgreSQL as the database, Strapi as the headless CMS, and Next.js as the frontend framework. The application also integrates Paytm for seamless payment transactions. This readme provides essential information on setting up and running the GO-Shop application.
Make sure you have the following prerequisites installed before setting up the GO-Shop application:
- Node.js: Download and install Node.js
- PostgreSQL: Download and install PostgreSQL
- Strapi: Install Strapi
- Next.js: Get started with Next.js
- Paytm Developer Account: Sign up for Paytm Developer
- Clone the repository:
git clone https://github.com/nischay-code/go-shop.git
- Navigate to the project directory:
cd go-shop
- Install dependencies for the frontend:
cd frontend
npm install
- Install dependencies for the Strapi backend:
cd ../backend
npm install
- Open frontend/.env.local and configure the following variables:
NEXT_PUBLIC_STRAPI_API_URL=http://localhost:1337
PAYTM_MERCHANT_KEY=your-paytm-merchant-key
PAYTM_MERCHANT_ID=your-paytm-merchant-id
- Open backend/config/database.js and configure the PostgreSQL database connection:
// ... (same as above)
- Open backend/config/server.js and configure the server host and port:
// ... (same as above)
- Start the Strapi backend:
cd backend
npm run develop
The Strapi admin panel should be accessible at http://localhost:1337/admin.
-
Create necessary content types and data in the Strapi admin panel.
-
Start the Next.js frontend:
cd frontend
npm run dev
The GO-Shop application should be accessible at http://localhost:3000.
Explore the GO-Shop application, add products to the cart, and proceed to checkout. Use the Paytm integration for secure payment transactions.
Contributing π€ Feel free to contribute to the development of GO-Shop by opening issues and pull requests on the GitHub repository.