Commit 4839f941 authored by krlwlfrt's avatar krlwlfrt
Browse files

feat: add api

parents
Loading
Loading
Loading
Loading

.editorconfig

0 → 100644
+17 −0
Original line number Diff line number Diff line
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs
# editorconfig.org

root = true

[*]
indent_style = space
indent_size = 2

# We recommend you to keep these unchanged
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

.gitignore

0 → 100644
+68 −0
Original line number Diff line number Diff line
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# ignore ide files
.idea
.vscode

# ignore lib
lib

# ignore docs
docs

.gitlab-ci.yml

0 → 100644
+57 −0
Original line number Diff line number Diff line
image: node:lts-alpine

cache:
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - lib
    - node_modules

stages:
  - build
  - test
  - deploy

build:
  stage: build
  script:
    - npm install
    - npm run build

build:image:
  image: docker:stable
  stage: build
  variables:
    DOCKER_DRIVER: overlay2
  services:
    - docker:dind
  script:
    - docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN registry.gitlab.com
    - docker build -t registry.gitlab.com/openstapps/api/copy:$CI_BUILD_REF_NAME .
    - docker push registry.gitlab.com/openstapps/api/copy:$CI_BUILD_REF_NAME
    - docker build -t registry.gitlab.com/openstapps/api/copy:latest .
    - docker push registry.gitlab.com/openstapps/api/copy:latest
  tags:
    - docker
  only:
    - /^v[0-9]+\.[0-9]+\.[0-9]+$/

audit:
  stage: test
  script:
    - npm audit

mocha:
  stage: test
  script:
    - npm test

pages:
  stage: deploy
  script:
    - npm run documentation
    - mv docs public
  only:
    - /^v[0-9]+\.[0-9]+\.[0-9]+$/
  artifacts:
    paths:
      - public
+38 −0
Original line number Diff line number Diff line
## Summary

(Summarize the bug encountered concisely)


## Steps to reproduce

(How one can reproduce the issue - this is very important)


## Example Project

(If possible, please create an example project here on GitLab.com that exhibits the problematic behaviour, and link to it here in the bug report)

(If you are using an older version of GitLab, this will also determine whether the bug has been fixed in a more recent version)


## What is the current bug behavior?

(What actually happens)


## What is the expected correct behavior?

(What you should see instead)


## Relevant logs and/or screenshots

(Paste any relevant logs - please use code blocks (```) to format console output,
logs, and code as it's very hard to read otherwise.)


## Possible fixes

(If you can, link to the line of code that might be responsible for the problem)

/label ~meeting
+16 −0
Original line number Diff line number Diff line
## Description

(Describe the feature that you're requesting concisely)


## Explanation

(Explain why the feature is necessary)


## Dependencies, issues to be resolved beforehand

(List issues or dependencies that need to be resolved before this feature can be implemented)


/label ~meeting