2
1
mirror of https://github.com/Thream/api.git synced 2024-07-02 02:40:13 +02:00
Thream's Application Programming Interface (API) to stay close with your friends and communities. https://api.thream.divlo.fr/documentation
Go to file
2023-12-28 04:09:20 +00:00
.devcontainer chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
.github chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
.husky fix: update dependencies to latest 2023-01-11 18:02:38 +01:00
.vscode chore: update semantic-release tooling 2023-12-28 05:08:26 +01:00
email chore: initial commit 2021-10-24 04:06:16 +02:00
generators/service chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
prisma chore: reset initial prisma/migration 2022-03-21 16:08:33 +01:00
src chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
.commitlintrc.json fix: update dependencies to latest 2023-05-13 20:09:02 +02:00
.dockerignore fix: update dependencies to latest 2023-01-11 18:02:38 +01:00
.editorconfig chore: initial commit 2021-10-24 04:06:16 +02:00
.env.example fix: update dependencies to latest 2023-07-22 16:26:27 +02:00
.eslintrc.json fix: update dependencies to latest 2023-07-22 16:26:27 +02:00
.gitattributes chore: cleanup 2022-02-07 16:18:11 +00:00
.gitignore refactor: minor changes 2022-08-29 16:10:17 +00:00
.lintstagedrc.json build(deps): update latest 2022-08-23 21:53:07 +00:00
.markdownlint-cli2.jsonc fix: update dependencies to latest 2023-05-13 20:09:02 +02:00
.npmrc chore: initial commit 2021-10-24 04:06:16 +02:00
.prettierrc.json chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
.releaserc.json chore: configure correctly semantic-release 2022-04-08 21:43:34 +02:00
.swcrc fix: update dependencies to latest 2023-09-18 22:36:35 +02:00
CODE_OF_CONDUCT.md fix: update author - Théo LUDWIG 2023-07-02 18:46:58 +02:00
compose.yaml chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
CONTRIBUTING.md fix: update dependencies to latest 2023-07-22 16:26:27 +02:00
Dockerfile chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
LICENSE chore: initial commit 2021-10-24 04:06:16 +02:00
package-lock.json chore(release): 1.2.10 [skip ci] 2023-12-28 04:09:20 +00:00
package.json chore(release): 1.2.10 [skip ci] 2023-12-28 04:09:20 +00:00
plopfile.js chore: better Prettier config for easier reviews 2023-10-23 23:38:50 +02:00
README.md fix: deprecation notice 2023-12-28 05:06:48 +01:00
tsconfig.json build(deps): update latest 2023-08-24 22:17:26 +02:00

Thream/api

⚠️ This project is not maintained anymore, you can still use the code as you wish and fork it to maintain it yourself.

Licence MIT Contributor Covenant

Conventional Commits semantic-release

📜 About

Thream's Application Programming Interface (API) to stay close with your friends and communities.

It uses Thream/file-uploads-api v1.1.8.

⚙️ Getting Started

Prerequisites

Installation

# Clone the repository
git clone git@github.com:Thream/api.git

# Go to the project root
cd api

# Install dependencies
npm clean-install

# Configure environment variables
cp .env.example .env

# Generate Prisma client types
npm run prisma:generate

Database Setup

# Create a new user and database
psql
CREATE DATABASE thream;
CREATE USER thream_user with encrypted password 'password';
ALTER USER thream_user WITH SUPERUSER;

Database Production migration

npm run prisma:migrate:deploy

Local Development environment

Recommended to use VSCode: Remote development in Containers.

Database Development migration

# Run Prisma migrations
npm run prisma:migrate:dev

# Reset the database (WARNING: This will delete all data)
npm run prisma:migrate:reset

Usage

npm run dev
Services started
Commands
# Build, Lint and Test
npm run build
npm run build:typescript
npm run lint:editorconfig
npm run lint:markdown
npm run lint:eslint
npm run lint:prettier
npm run test

Production environment (with Docker)

docker compose up --build

💡 Contributing

Anyone can help to improve the project, submit a Feature Request, a bug report or even correct a simple spelling mistake.

The steps to contribute can be found in CONTRIBUTING.md.

📄 License

MIT