Skip to content

ukarpenkov/nextProject

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

71 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Quotes DB πŸ“šβœ¨

A simple full-stack project with:

  • Frontend: Next.js 13 (App Router) βš›οΈ
  • Testing: Jest on the frontend βœ…
  • Backend: Express.js with PostgreSQL πŸ”™πŸ˜

Project Structure πŸ—‚οΈ

  • quotes-db-frontend/client/ – Next.js app (components, pages, tests)
  • quotes-db-frontend/server/ – Express API (routes, controllers, services) + Sequelize
  • quotes-db-frontend/server/src/database/ – CSV data and seed scripts πŸ“„
  • quotes-db-frontend/server/docker-compose.yml – Optional local Postgres via Docker 🐳

Prerequisites βš™οΈ

  • Node.js 18+
  • npm or yarn
  • PostgreSQL (local or Docker)

Setup πŸš€

  1. Install dependencies
  • Frontend:
    • cd quotes-db-frontend/client
    • npm install
  • Backend:
    • cd ../server
    • npm install
  1. Environment variables πŸ”
  • Frontend (quotes-db-frontend/client/.env.local):
    • NEXT_PUBLIC_API_URL=http://localhost:4000
  • Backend (quotes-db-frontend/server/.env):
    • PORT=4000
    • DATABASE_URL=postgres://user:password@localhost:5432/quotes
  1. (Optional) Start PostgreSQL with Docker 🐳
  • cd quotes-db-frontend/server
  • docker compose up -d

Running πŸƒ

Testing βœ…

  • Frontend Jest:
    • cd quotes-db-frontend/client
    • npm test

Notable Features ⭐

  • Quote listing, search, and details πŸ”Ž
  • Create quotes via UI ✍️
  • Form validation and error handling ⚠️
  • Toast notifications 🍞

Tech Stack 🧰

  • Next.js, React, CSS Modules/PostCSS
  • Jest for unit tests
  • Express.js, Sequelize, PostgreSQL
  • CSV import utilities

Scripts (reference) πŸ“œ

  • Server: start, dev
  • Client: standard Next.js scripts (dev, build, start, test)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors