Skip to content

skylab-kulubu/weblab-project-management

Repository files navigation

Skylab Project Management

Setup & Deployment on Render

This project is configured for easy deployment on Render.com.

Prerequisites

  1. Push this code to a GitHub/GitLab repository.
  2. Create a Render account.

Automated Deployment (Blueprints)

  1. Go to Blueprints on Render Dashboard.
  2. Click New Blueprint Instance.
  3. Connect your repository.
  4. Render will automatically detect render.yaml and set up:
    • PostgreSQL Database (Managed)
    • Web Service (Next.js App)
    • It will auto-link DATABASE_URL.

Manual Deployment

If you prefer to set up manually:

  1. Create PostgreSQL Service:

    • Name: weblab-db (or any)
    • Note the Internal Connection String.
  2. Create Web Service:

    • Build Command: npm install && npm run build
    • Start Command: npm start
    • Environment Variables:
Variable Value Description
DATABASE_URL YOUR_POSTGRES_INTERNAL_URL Connection string from Step 1
JWT_SECRET YOUR_SECURE_RANDOM_STRING E.g. locally generated distinct hash
NODE_ENV production Optimizes for performance

Post-Deployment

  • Seeding Data: After deployment, if you want to reset/seed the database:
    1. Go to your Web Service > Shell.
    2. Run: npm run prisma:seed (or node prisma/seed-native.js directly).

Local Development

# Start DB
docker-compose up -d postgres

# Push Schema
npx prisma db push

# Seed Data (Optional)
npm run prisma:seed

# Start App
npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published