Skip to content

a-3isa/market

Repository files navigation

🛒 Product Catalog Web App

This is a simple web app with login/signup functionality and a product catalog page, powered by a PostgreSQL database and a TypeScript backend.


🚀 Setup Instructions

  1. Clone the Repository
git clone https://github.com/a-3isa/market.git
  1. Install Dependencies
npm install
  1. Configure the Database

Make sure you have PostgreSQL installed and running locally.

Set the environment variable DATABASE_URL (you can use dotenv or pass inline):

DATABASE_URL=postgres://<USERNAME>:<PASSWORD>@localhost:<PORT>/market

⚠️ Replace USERNAME , PASSWORD , PORT with your actual PostgreSQL cardinals if it's different.

  1. Run Database Migrations
npm run migrate up

This will create the required tables in your market database.

  1. Start the Backend Server
npm start

This will start your API server on http://localhost:3000.

  1. Serve the Frontend

If your frontend is static (like plain HTML/JS), run:

http-server .

Then open your browser and go to:

http://localhost:8080

📁 Project Structure

├── index.html         # Login/Signup UI
├── catalog.html       # Product catalog UI
├── backend/           # TypeScript backend code
│   ├── index.ts
│   └── routes/
├── migrations/        # DB migrations
├── package.json
├── tsconfig.json
└── README.md

📦 Tech Stack

  • TypeScript (Node.js)
  • PostgreSQL
  • Plain HTML/CSS/JS (Frontend)
  • http-server for static serving

About

mangment system for market

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published