https://github.com/loopkyy/sven-store
Modern e-commerce web app built with CodeIgniter 4 and React.
https://github.com/loopkyy/sven-store
backend codeigniter ecommerce frontend online-store react webapp
Last synced: 2 months ago
JSON representation
Modern e-commerce web app built with CodeIgniter 4 and React.
- Host: GitHub
- URL: https://github.com/loopkyy/sven-store
- Owner: loopkyy
- License: mit
- Created: 2025-08-06T10:09:43.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2025-12-15T14:24:15.000Z (6 months ago)
- Last Synced: 2025-12-18T18:27:43.392Z (6 months ago)
- Topics: backend, codeigniter, ecommerce, frontend, online-store, react, webapp
- Language: PHP
- Homepage:
- Size: 18.8 MB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
🌟 Lunaya Store — CodeIgniter 4 + React
✨ Overview
Lunaya Store is a modern e-commerce web application built using:
🔧 CodeIgniter 4 (PHP) — as backend framework (API + admin panel)
⚛️ React — as frontend for customers (/frontend-react)
🎨 Chakra UI on frontend, Sneat Admin template on backend
📦 Packaged with Composer, using .env for configuration
This repository is a monorepo to manage both backend and frontend in one place.
🚀 Installation & Setup
Backend (CodeIgniter 4)
bash
Copy
Edit
# Clone the repo
git clone https://github.com/kamu-user/lunaya-store.git
cd lunaya-store
# Install dependencies
composer install
# Copy .env file
cp env .env
# Setup .env
# (Edit app.baseURL, database settings, etc.)
# Migrate the database
php spark migrate
# Serve the project
php spark serve
Frontend (React)
bash
Copy
Edit
# Navigate to frontend folder
cd frontend-react
# Install React dependencies
npm install
# Start the React dev server
npm run dev
⚠️ Make sure your API endpoints in React are correctly pointing to your backend baseURL.
📁 Project Structure
pgsql
Copy
Edit
lunaya-store/
├── app/ → CodeIgniter 4 backend
├── public/ → Public folder (index.php)
├── frontend-react/ → React frontend app
├── writable/ → CI4 writable folder
├── .env → Environment settings
├── composer.json → PHP dependencies
└── README.md
🌐 Deployment Notes
Point your web server (Apache/Nginx) to the public/ directory.
Use a separate domain or subdomain for frontend (e.g., store.example.com).
Build frontend for production:
bash
Copy
Edit
npm run build
Always commit your .env.example, never your real .env.
🧑💻 Developer Notes
Uses RESTful API between frontend and backend.
Authentication via session or token-based (custom implementation).
Wishlist & cart functionality uses localStorage/sessionStorage on frontend.
🔧 Requirements
PHP 8.1+
Composer
Node.js & npm
MySQL or compatible database
Apache/Nginx for production
📚 Resources
CodeIgniter Docs
React Docs
Chakra UI
Sneat Template