Workwise Backend is the backend application for the Workwise project. It provides the necessary APIs and services to support the Workwise web application.
- Staff Routes Endpoints.
- Annual Leave Routes Endpoints.
- Expense Routes Endpoints
- Income Routes Endpoints
- Other Routes Endpoints
- Staff list and staff details of company.
- Financial and hiearchy charts.
- Expense and income detail tables.
- Annual leave request and approval pages. (Only relavent managers can see and approve requests)
- Add, delete or edit staff. (only HR role can do these)
- Node.js
- Express.js
- TypeScript
- PostgreSQL
- Firebase Admin SDK
- Kysely
-
Clone the repository:
git clone https://github.com/bulutyerli/workwise-backend.git cd workwise-backend
-
Install dependencies:
npm install
-
Set up environment variables:
NODE_ENV=development DB_DATABASE=DATABASE-NAME PORT=8080 DB_HOST=YOUR_DB_HOST DB_USER=YOUR_DB_USER DB_PASSWORD=YOUR_DB_PASSWORD DB_PORT=YOUR_DB_PORT BASE_URL=FRONTEND_URL GOOGLE_APPLICATION_CREDENTIALS=FIREBASE_ADMIN_SDK_SECRET_FILE
-
Build and Start:
npm run build npm run start