Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ShopSphere

PostgreSQL, Express, React and Node.js shopping application using raw SQL.

Read the backend guide for the file map, API routes, SQL, transactions, stored routines and database rules. The broader website/API guide covers role workflows and field ownership. See the current checklist review, demo dataset, and the schema reference and ERD.

From this directory, install dependencies once with npm install. Configure server/.env from server/.env.example and create a PostgreSQL database. For a new empty database, run npm run db:init, then npm run db:seed. All definitions are in server/sql/schema.sql; there are no migration files. After every schema change, run npm run db:reset to recreate the public schema and populate both demo datasets. It deletes the application's existing data. npm run dev starts the API on port 5000 and website on port 5173.

npm run build, npm run lint, npm test, and npm run test:e2e run validation. Tests need PostgreSQL schema-creation permission; browser tests also need Chromium (npm exec --workspace client -- playwright install chromium).

npm run docs:schema rebuilds docs/SCHEMA.md from schema.sql. It needs no database, and it does not run itself — rerun it after any schema change, or the reference goes stale silently.

This is one npm workspace with a root lockfile and dependency installation. The root, client and server package.json files have distinct purposes and are required. Run installation and project commands from the root.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages