Welcome to the Online Thrift Store project! This application is a simple e-commerce platform focused on buying and selling second-hand sneakers. The project uses JSON Server for a mock backend and simple HTML/CSS/JS for the frontend.
db.json
).
├── db.json # Mock database for products (JSON Server)
├── index.html # Main frontend file
├── styles.css # CSS styles (if present)
├── script.js # JS logic (if present)
├── README.md # Project documentation
└── ... # Other assets or files
git clone https://github.com/allan6757/OnlineThriftStore.git
cd OnlineThriftStore
If using JSON Server, install it globally or locally:
npm install -g json-server
or
npm install json-server --save-dev
json-server --watch db.json --port 3000
This will run your fake API at http://localhost:3000/products.
Open index.html
in your browser.
If your app fetches data from the API, make sure URLs match your json-server
port.
The db.json
file contains a list of sneaker products with the following fields:
id
(string): Unique identifiername
(string): Product nameprice
(number): Price in your currencysize
(string): Size informationcondition
(string): Product condition (new, used, mint)image
(string): Image URL or base64status
(string): Availability (e.g., available)db.json
You can deploy the project for free using Render or similar static hosting services.
For the backend, Render can serve your json-server
as a REST API.
Contributions are welcome!
Feel free to fork the repo, open issues, or submit pull requests.
This project is licensed under the MIT License.