MCPcopy Index your code
hub / github.com/dhatGuy/PERN-Store

github.com/dhatGuy/PERN-Store @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
212 symbols 552 edges 127 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Codacy Badge Netlify Status wakatime

PERN STORE

A full-stack e-commerce project built with Postgres, Express, React and Node.

Swagger API Documentation

Documentation

Demo

Run demo

Screenshots

Homepage Screen Shot

Database Schema

ERD

Run Locally

Clone the project

  git clone https://github.com/dhatguy/PERN-Store.git

Go to the project directory

  cd PERN-Store

Install dependencies

  npm install

Go to server directory and install dependencies

  npm install

Go to client directory and install dependencies

  npm install

Go to server directory and start the server

  npm run dev

Go to client directory and start the client

  npm run client

Start both client and server concurrently from the root directory

  npm run dev

Running with docker

Make sure you have Docker installed

Run the development environment

docker-compose -f docker-compose.dev.yml up

Run the production environment

docker-compose up

Go to http://localhost:3000 to view the app running on your browser.

Deployment

To deploy this project run

  npm run deploy

Check this article for guidance on how to deploy.

Tech

Environment Variables

To run this project, you will need to add the following environment variables to your .env files in both client and server directory

client/.env

VITE_GOOGLE_CLIENT_ID

VITE_GOOGLE_CLIENT_SECRET

VITE_API_URL

VITE_STRIPE_PUB_KEY

server/.env

POSTGRES_USER

POSTGRES_HOST

POSTGRES_PASSWORD

POSTGRES_DATABASE

POSTGRES_DATABASE_TEST

POSTGRES_PORT

PORT

SECRET

REFRESH_SECRET

SMTP_FROM

STRIPE_SECRET_KEY

Contributing

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Feedback

Joseph Odunsi - @odunsi - odunsiolakunbi@gmail.com

Project Link: https://github.com/dhatguy/PERN-Store

Demo Link: https://pern-store.netlify.app

Core symbols most depended-on inside this repo

useUser
called by 12
client/src/context/UserContext.jsx
usersInDb
called by 12
server/helpers/test_helper.js
formatCurrency
called by 11
client/src/helpers/formatCurrency.js
useCart
called by 9
client/src/context/CartContext.jsx
handleSubmit
called by 7
client/src/components/ReviewModal.jsx
getUserByEmailDb
called by 7
server/db/user.db.js
next
called by 4
client/src/pages/Checkout.jsx
signToken
called by 4
server/services/auth.service.js

Shape

Function 152
Method 34
Class 26

Languages

TypeScript100%

Modules by API surface

server/services/auth.service.js13 symbols
server/controllers/products.controller.js10 symbols
client/src/services/auth.service.js10 symbols
server/db/user.db.js9 symbols
server/db/product.db.js7 symbols
server/db/cart.db.js7 symbols
server/controllers/auth.controller.js7 symbols
client/src/services/cart.service.js7 symbols
client/src/context/CartContext.jsx7 symbols
server/controllers/users.controller.js6 symbols
server/controllers/cart.controller.js5 symbols
client/src/services/review.service.js5 symbols

For agents

$ claude mcp add PERN-Store \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact