Logo Lanfrica

darcy67du/darcy-cookies-store

Record type:

software
Creator:
dar
Host:
A full-stack e-commerce platform for a Rwandan cookie business. Built with HTML/CSS/JS (frontend) + Node.js/Express/MongoDB (backend). # πŸͺ Darcy's Cookies – E-Commerce Web Application A full-stack e-commerce platform for a Rwandan cookie business. Built with **HTML/CSS/JS** (frontend) + **Node.js/Express/MongoDB** (backend). --- ## πŸš€ Live Links (fill in after deployment) - **Frontend (Netlify):** `darcy-cookies.netlify.app` - **Backend API (Render):** `darcy-cookies-api.onrender.…` --- ## πŸ“ Project Structure ``` Darcy-cookies-store/ β”œβ”€β”€ frontend/ ← Static site β†’ deploy to Netlify β”‚ β”œβ”€β”€ index.html β”‚ β”œβ”€β”€ products.html β”‚ β”œβ”€β”€ product.html β”‚ β”œβ”€β”€ cart.html β”‚ β”œβ”€β”€ checkout.html β”‚ β”œβ”€β”€ admin.html β”‚ β”œβ”€β”€ css/style.css β”‚ └── js/ β”œβ”€β”€ backend/ ← Node.js API β†’ deploy to Render β”‚ β”œβ”€β”€ server.js β”‚ β”œβ”€β”€ config/db.js β”‚ β”œβ”€β”€ models/ β”‚ β”œβ”€β”€ routes/ β”‚ └── package.json └── .github/workflows/ ← CI/CD pipeline ``` --- ## βš™οΈ Deployment Guide ### Step 1 – MongoDB Atlas 1. Go to cloud.mongodb.com and create a free account 2. Create a new **free cluster** (M0) 3. Create a database user (username + password) 4. Under **Network Access** β†’ Add IP Address β†’ `0.0.0.0/0` (allow all) 5. Click **Connect** β†’ **Drivers** β†’ copy the connection string 6. Replace ` ` with your DB user password 7. Save this string β€” you'll need it for Render --- ### Step 2 – GitHub 1. Create a new repository on github.com called `darcy-cookies-store` 2. Upload all project files (or use `git push`) 3. Make sure your `.env` file is **NOT** committed (it's in `.gitignore`) --- ### Step 3 – Render (Backend) 1. Go to render.com β†’ Sign in with GitHub 2. Click **New** β†’ **Web Service** β†’ connect your GitHub repo 3. Configure: - **Name:** `darcy-cookies-api` - **Root Directory:** `backend` - **Build Command:** `npm install` - **Start Command:** `npm start` - **Plan:** Free 4. Add **Environment Variables**: ``` MONGO_URI = (your Atlas connection string) JWT_SECRET = (any long random string) BASE_URL = darcy-cookies-api.onrender.… ``` 5. Click **Deploy** β€” wait ~3 …

Languages