Skip to content

masrur-mmrs/aesthetix-admin-store

Repository files navigation

Medusa logo

This is an e-commerce website built with the help of Medusa JS using Next.js, React, Tailwind CSS for the frontend, and Express with PostgreSQL for the backend, payment integration using Stripe and S3 for storing static assets.

Table of Contents

Features

  • User Auth (signup, login, logout)
  • Product Listing
  • Search using Algolia
  • Shopping cart and checkout flow
  • Responsive design
  • Payment using Stripe
  • S3 for storing static assets

Teck Stack

Frontend:

Next

React JS

Tailwind
Backend:

Express JS

PostgreSQL

TypeORM

Stripe

Amazon S3
Hosting:

Vercel

Railway

Prerequisites

  • Node.js (v14.x or later)
  • npm or yarn
  • PostgreSQL

Installation

  1. Clone the repository:
git clone https://github.com/masrur-mmrs/aesthetix-admin-store.git
cd aesthetix-admin-store
  1. Install dependencies for both the frontend and backend:
cd frontend
npm install
cd ../backend
npm install

Configuration

  1. Set up environment variables:

Create a .env file in the backend directory with the following content

DATABASE_URL=postgres://username:password@localhost:5432/database_name
JWT_SECRET=your_jwt_secret
  1. Set up PostgreSQL database:
npx @medusajs/medusa-cli@latest seed -f ./data/seed.json

Running the App

Start the backend server:

cd backend
npm run dev

Scripts

Backend Scripts:

  • npm run clean
  • npm run build
  • npm run build:server
  • npm run build:admin
  • npm run dev:admin
  • npm run watch
  • npm run test
  • npm run seed
  • npm run start
  • npm run start:custom
  • npm run dev

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

Licenses

This project is licensed under the MIT License. See the LICENSE file for details.