Skip to content

FelipeFMA/market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🛍️ Online Market Project

📝 Overview

A simple yet functional online market system with customer and admin interfaces. This project was created for learning purposes and to explore web development concepts in a practical way.

🎯 Purpose

  • Learning project to understand JavaScript, HTML, and CSS
  • Experimenting with client-server architecture
  • Understanding state management and DOM manipulation
  • Practice working with APIs and data persistence

🚀 Features

Customer Interface

  • Browse products
  • Add items to cart
  • Real-time price calculation
  • Search functionality
  • Dark/Light theme toggle

Admin Interface

  • Add new products
  • Edit existing products
  • Delete products
  • View statistics
  • Search functionality

⚙️ Technical Details

  • Frontend: HTML, CSS, JavaScript
  • Backend: Node.js with Express
  • Data Storage: JSON file
  • API: RESTful endpoints

🤖 AI Assistance

This project was developed with significant help from AI tools as part of the learning process. The code structure and implementation were guided by AI while learning JavaScript and web development concepts.

🚧 Code Status

The current codebase is a working prototype but needs significant refactoring:

  • Code organization needs improvement
  • Better separation of concerns needed
  • Comments and documentation to be added
  • Error handling could be enhanced
  • Security features to be implemented

📦 Installation

  1. Clone the repository
git clone [repository-url]
  1. Install dependencies
npm install express cors

🎮 Running the Project

  1. Navigate to the project directory
cd market
  1. Start the server
node server.js
  1. Access the application
  • Open your browser and go to http://localhost:3000
  1. Default Admin Credentials
{
  "username": "admin",
  "password": "123456"
}

🔧 Requirements

  • Node.js
  • NPM
  • Modern web browser

👥 Contributing

Feel free to fork, modify, and make pull requests. As this is a learning project, any input or suggestions are welcome!

📝 Note

This project is not intended for production use. It's a learning tool and demonstration of basic web development concepts.

🙏 Acknowledgments

Special thanks to Ítalo, a friend of mine that gave me the idea of this project and to ChatGPT/Claude because... well... LOL

Releases

No releases published

Packages

No packages published