Skip to content
LivingstoneMaganyaPublic

About

πŸ“ Daily Tracker & Auth REST API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

Β 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Daily Tracker & Auth REST API

A light, high-performance RESTful API built with Node.js (ES Modules), Express.js, and Neon Serverless PostgreSQL. Features secure password hashing with bcrypt, CRUD operations for user logs, centralized error handling, and zero-config deployment to Vercel.


πŸ› οΈ Tech Stack

  • Runtime: Node.js (ES6+ ES Modules)
  • Framework: Express.js
  • Database: PostgreSQL (Hosted on Neon)
  • Database Client: pg (node-postgres with connection pooling)
  • Security: bcrypt / bcryptjs password hashing
  • Deployment: Vercel Serverless Functions

πŸš€ Features

  • User Authentication: Secure registration and login flow with bcrypt salt hashing.
  • Log Management: Full CRUD (Create, Read, Update, Delete) capability for user daily entries.
  • Centralized Async Handling: Async wrapper to eliminate boilerplate try...catch blocks.
  • Production-Ready Security: Environment variable isolation for database secrets using dotenv.
  • Serverless Prepared: Modularized setup with vercel.json for rapid deployment.

πŸ“ Project Structure

.
β”œβ”€β”€ middleware/
β”‚   └── errorHandler.js    # Async wrapper & centralized error handler
β”œβ”€β”€ public/                # Static assets & frontend UI
β”œβ”€β”€ .env.example           # Example environment template
β”œβ”€β”€ .gitignore             # Git exclusion rules
β”œβ”€β”€ db.js                  # PostgreSQL Pool configuration
β”œβ”€β”€ package.json           # Dependencies and scripts
β”œβ”€β”€ server.js              # Express app routing and configuration
β”œβ”€β”€ vercel.json            # Vercel deployment routing rules
└── README.md              # Project documentation

About

πŸ“ Daily Tracker & Auth REST API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages