Skip to content

Employee Shift Management Web App is a full-stack application built with NestJS, Vue.js 3, and PostgreSQL

Notifications You must be signed in to change notification settings

sutuioncode/Shifts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Employee Shift Management Web App

Overview

This is a Node.js web application written in TypeScript that manages employee shifts. The app allows users to create shifts and view them in a calendar. It consists of:

  • Backend: NestJS (with Prisma ORM)
  • Frontend: Vue.js 3
  • Database: PostgreSQL
  • Hosting: Docker
  • API Documentation: The API documentation is created using Bruno and can be found here.

Features

  • Create employee shifts
  • View shifts on a calendar
  • API endpoints to manage and retrieve shifts

Tech Stack

  • Backend: NestJS (TypeScript, Prisma ORM, PostgreSQL)
  • Frontend: Vue.js 3
  • Database: PostgreSQL
  • Containerization: Docker

Installation

Prerequisites

Make sure you have the following installed:

  • Docker & Docker Compose

Setup

  1. Clone the repository:
    git clone https://github.com/sutuioncode/shifts.git
    cd shifts
  2. Configure environment variables
    • Create a .env file inside the shifts/backend folder and set up your database connection:
      DATABASE_URL=postgresql://postgres:postgres@database:5432/shifts
    • Create a .env file inside the shifts/frontend folder:
      VITE_API_URL=http://localhost:3000
  3. Run the application:
    • Build the application
    docker compose up -- build
    • Start the application at http:\\localhost:8080

Deployment

TBA

License

MIT License