Quick Start
Get WorkForce running in 5 minutes for development.
1. Clone the Repository
git clone https://github.com/your-org/workforce.git
cd workforce
2. Install Dependencies
npm install
3. Configure Environment
Create a .env file in the project root:
DATABASE_URL="postgresql://user:password@localhost:5432/workforce?schema=public"
NEXTAUTH_SECRET="your-random-secret-string"
NEXTAUTH_URL="http://localhost:3000"
Generate a strong secret:
node -e "console.log(require('crypto').randomBytes(32).toString('hex'))"
4. Set Up the Database
# Generate Prisma client
npx prisma generate
# Run migrations
npx prisma migrate deploy
# (Optional) Seed with sample data
npx prisma db seed
5. Start Development Server
npm run dev
The app is now running at http://localhost:3000.
6. Create Your First Account
- Open http://localhost:3000 in your browser
- Click Register
- Fill in your company and admin account details
- Log in with your new credentials
Next Steps
- Database Configuration — Advanced database setup
- Environment Variables — All available configuration options
- Production Deployment — Deploy for real use