DEV Community

Adam Chain
Adam Chain

Posted on

Complete, full-stack setup for any node/express/psql app, equipped with basic ui, routes & more.

View on GitHub

My 2nd public project! a full-stack js/node/express/postgres template (or foundation?). Syncs interface with your db, lets users sign up, sign in, and open a JWT token-protected page. Includes CRUD for user management.

Frontend:

  1. Sign Up: Form for name, email, and password (with validation).
  2. Sign In: Login with email and password, get a JWT.
  3. Dashboard: Protected, validates JWT.

Backend:

  1. Built with Express.js.
  2. Handles routes, auth, and APIs.
  3. Hashes passwords with bcrypt.
  4. JWT for sessions.

Database:

  1. PostgreSQL for user data.
  2. CRUD for create, read, update, delete users.
  3. Simple, functional starting point for auth-based apps.

My Schema:
Image description

Guide to setting up node/express-postgres enviornment: https://blog.logrocket.com/crud-rest-api-node-js-express-postgresql/

--
Disclaimer: I'm brand new to dev & I am building projects, 1 at a time, to help myself. I would appreciate any & all feedback.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (1)

Some comments may only be visible to logged-in visitors. Sign in to view all comments.

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay