Backend Server
Go to file
Nicolai Ort 161feaf364
continuous-integration/drone/pr Build is passing Details
continuous-integration/drone/push Build is failing Details
Merge pull request 'OrganiZation rename feature/117-organization' (#121) from feature/117-organization into dev
Reviewed-on: #121
2021-01-24 17:51:50 +00:00
.vscode 🐞 VSCode formatting broke code by removing all unused 2020-12-04 17:05:13 +01:00
scripts Fixed broken pkg stuff 2021-01-15 20:18:14 +01:00
src Renamedpermisssions from *Organisation* to *Organization*📝 2021-01-24 18:43:29 +01:00
.dockerignore Added sqlite testing db to ignores 2020-11-25 18:32:01 +01:00
.drone.yml automaticly merge main into dev after building a latest image 2021-01-15 21:53:20 +01:00
.env.ci Set country code for the ci env to DE 2021-01-19 15:49:35 +01:00
.env.example Added sqlite as to env.sample db of choice [skip ci] 2021-01-21 15:27:11 +01:00
.gitignore Added tmp files to gitignore 2021-01-07 19:19:21 +01:00
CHANGELOG.md 🧾New changelog file version [CI SKIP] [skip ci] 2021-01-22 14:13:45 +00:00
Dockerfile 🐳 optimize Dockerfile in speed and size (pnpm + layers) 2020-12-12 17:48:32 +01:00
LICENSE Initial commit 2020-11-24 16:51:18 +00:00
README.md Readme reorganisation [skip ci] 2021-01-21 15:43:11 +01:00
docker-compose.yml 🐳 working Dockerfile 2020-12-12 13:04:37 +01:00
jest.config.js basic jest + typescript support 2020-12-05 18:49:09 +01:00
licenses.md new license file version [CI SKIP] 2020-12-31 17:02:56 +00:00
ormconfig.js basic build works 2020-12-12 12:29:14 +01:00
package.json 🚀Bumped version to v0.2.1 2021-01-21 18:15:24 +01:00
tmp.json Switched to automatic license attribution generation via oss-attribution-generator 2020-12-31 15:14:51 +01:00
tsconfig.json basic build works 2020-12-12 12:29:14 +01:00

README.md

@lfk/backend

Backend Server

Quickstart 🐳

Use this to run the backend with a postgresql db in docker

  1. Clone the repo or copy the docker-compose
  2. Run in toe folder that contains the docker-compose file: docker-compose up -d
  3. Visit http://127.0.0.1:4010/api/docs to check if the server is running
  4. You can now use the default admin user (demo:demo)

Dev Setup 🛠

Local dev setup utilizing sqlite3 as the database.

  1. Rename the .env.example file to .env (you can adjust app port and other settings, if needed)
  2. Install Dependencies
    yarn
    
  3. Start the server
    yarn dev
    

Run Tests

# Run tests once (server has to run)
yarn test

# Run test in watch mode (reruns on change)
yarn test:watch

# Run test in ci mode (automaticly starts the dev server)
yarn test:ci

Generate Docs

yarn docs

Visual Studio Code

  • will be automatically recommended via ./vscode/extensions.json

Staging

Branches & Tags

  • vX.Y.Z: Release tags created from the main branch
    • The version numbers follow the semver standard
    • A new release tag automaticly triggers the release ci pipeline
  • main: Protected "release" branch
    • The latest tag of the docker image get's build from this
    • New releases get created as tags from this
  • dev: Current dev branch for merging the different feature branches and bugfixes
    • The dev tag of the docker image get's build from this
    • Only push minor changes to this branch!
    • To merge a feature branch into this please create a pull request
  • feature/xyz: Feature branches - nameing scheme: feature/issueid-title
  • bugfix/xyz: Branches for bugfixes - nameing scheme:bugfix/issueid-title