Skip to content

Instantly share code, notes, and snippets.

@codersidprogrammer
Created May 15, 2024 23:35
Show Gist options
  • Save codersidprogrammer/9f490a2543ab951bea5e6b0a3d526436 to your computer and use it in GitHub Desktop.
Save codersidprogrammer/9f490a2543ab951bea5e6b0a3d526436 to your computer and use it in GitHub Desktop.

XOPS Logo

Description

XOPS API Built on NestJS. It use as backend service for XOPS Environment. XOPS is application that built for recording manhours of work. So you can write and log all activity while you work.

System Requirement

Requirement Version
NodeJS >= 18.20
PostgreSQL >= 13.5
Redis latest
Elasticsearch 8.5.3

Installation

# Install all required dependencies
$ yarn install

# Generate entities for Database ORM
$ yarn prisma:generate
$ yarn prisma:generate:crm
$ yarn prisma:generate:xopstz

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# Or
$ yarn start:devwatch

# production mode
$ yarn build
$ yarn start:prod

Deployment on Docker

If you prefer to deploy apps in docker, XOPS has been already its own Dockerfile and docker-compose. It was summarized in build.sh. Run the command, it would make image and deploy containers for you.

$ sh build.sh

Contributors

  • Mochammad Dimas Editiya
  • Antonio Saiful Islam
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment