Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

# Live CRUD Workspace A small full-stack app with a Next.js frontend and a Node.js backend that supports live updates through Server-Sent Events. ## What changed in `p13` - Reduced frontend client bundle by moving page chrome and initial data loading into server components. - Removed the unnecessary platform-specific `@next/swc-win32-x64-msvc` dependency. - Added environment validation for both frontend and backend. - Switched the browser to a same-origin `/api/*` proxy so the client no longer needs a hard-coded backend URL. - Added Dockerfiles and `docker-compose.yml` for full-stack deployment. ## Local development 1. Copy `.env.example` values into `backend/.env` and `frontend/.env.local`. 2. Install dependencies from the repo root: `npm install` 3. Start the backend: `npm run dev:backend` 4. Start the frontend: `npm run dev:frontend` ## Production build 1. Install dependencies: `npm install` 2. Build the frontend: `npm run build` 3. Start services: `npm run start:backend` `npm run start:frontend` ## Docker deployment 1. Create `backend/.env` and `frontend/.env.local`. 2. Build and start both services: `docker compose up --build` The frontend expects the backend to be reachable at the value of `API_PROXY_TARGET`. # LiveUpdate # LiveUpdate

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages