Skip to content
This repository was archived by the owner on May 7, 2024. It is now read-only.

DetactiveApp/api

Repository files navigation

Detactive is no longer active, so we decided to open source various services.

Detactive API

Game logic, user authentication and more.

Installation

Make sure you have Bun installed globally. With bun --version you can check if bun is installed on your machine. Then clone the repository and install all dependencies with bun i.
Make sure that you have set up the environment variables as in the template.

Run Locally

You can start the api by running bun run dev.

http://localhost:3000
http://localhost:3000/graphql

Database Actions

Generate new typed schema

bunx drizzle-kit generate:pg

Push to database

bunx drizzle-kit push:pg

Run Drizzle Studio locally

bunx drizzle-kit studio

NOTE: The /graphql interface is only accessible during development (NODE_ENV).

Run Tests

To run tests, run the following command

bun test:unit

Tech Stack

Core: Elysia.js, Typescript, Drizzle, GraphQL, GraphQL Yoga, GraphQL Shield, GraphQL Middleware
Code Quality: Prettier
Testing: Bun Test

Misc.

Pull Request

The title of the pull request should be semantic and in lower case.

Please use the Jira-Ticket number as scope.

Some examples:

feat(DT-123): some awesome new feature style(DT-13): some fresh new styles

Other

Do not push directly into release!!!

About

Detactive is no longer active, so we decided to open source various services.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published