Skip to content

flipadips/DavisHacks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NERP Starter

Basic tech stack:

  • Node.js runtime
  • Express.js API server
  • React frontend
  • PostgreSQL database

Project Structure

frontend/    React + Vite frontend
backend/     Node.js + Express API
docker-compose.yml  Local PostgreSQL database

Setup

  1. Install dependencies:
npm.cmd install
  1. Create local env files:
Copy-Item backend/.env.example backend/.env
Copy-Item frontend/.env.example frontend/.env
  1. Start PostgreSQL:
npm.cmd run db:up
  1. Start the app:
npm.cmd run dev

Frontend: http://localhost:5173

Backend health check: http://localhost:3000/api/health

Swagger API docs: http://localhost:3000/api-docs

OpenAPI YAML: http://localhost:3000/openapi.yaml

Database

The server creates a commands table automatically on startup. The sample UI sends commands to the server and stores them in PostgreSQL.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors