You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Clone the repository
git clone https://github.com/your-username/luxe-ecommerce.git
cd luxe-ecommerce
# Install dependencies
npm install
# Start the server
npm start
graph TD
A[Browser] -->|ES Modules| B[app.js]
B --> C[store.js<br>Central State]
B --> D[api.js<br>Product Data]
B --> E[api-client.js<br>Auth & Orders]
C --> F[Components]
F --> G[Product Grid]
F --> H[Cart Drawer]
F --> I[Checkout Form]
F --> J[Auth Modal]
F --> K[Location Picker]
E -->|REST API| L[Express Server]
L --> M[(SQLite DB)]
K -->|Tiles| N[OpenStreetMap]
K -->|Geocoding| O[Nominatim API]
Loading
π¨ Design System
Token
Value
Usage
--color-primary
#6c5ce7
Buttons, accents, links
--color-accent
#00b894
Success states, badges
--color-error
#e17055
Error states, validation
--radius-md
12px
Card corners, inputs
--shadow-lg
0 20px 60pxβ¦
Elevated surfaces
--transition-base
250ms ease
Standard interactions
π± Responsive Breakpoints
Breakpoint
Target
Layout
β₯ 1024px
π₯οΈ Desktop
Sidebar + 3-col grid
768px β 1023px
π± Tablet
No sidebar, 2-col grid
β€ 767px
π± Mobile
Single column, hamburger menu
π Security
Passwords hashed with bcrypt (10 salt rounds)
Authentication via JWT tokens (7-day expiry)
Input validation on both client and server
SQL injection prevention with parameterized queries
CORS enabled for cross-origin requests
π License
This project is licensed under the MIT License.
β If you like this project, consider sponsoring me
Built with β€οΈ using Vanilla JavaScript
About
Modern E-commerce Website built with HTML, CSS, and Vanilla JavaScript.