Giter Site home page Giter Site logo

bigcat88 / nextcloud-dotnet-microservice Goto Github PK

View Code? Open in Web Editor NEW

This project forked from splitt3r/nextcloud-dotnet-microservice

0.0 0.0 0.0 252 KB

.NET Microservice example for Nextcloud (https://github.com/cloud-py-api/app_api). This is only a playground.

License: MIT License

JavaScript 11.86% C# 33.74% CSS 8.54% HTML 1.07% Vue 43.36% Dockerfile 1.43%

nextcloud-dotnet-microservice's Introduction

.NET Microservice Nextcloud app demo

General dev setup

  • Run bash e.g. WSL not PowerShell! Some strange quote problems and execute the following steps
  • docker exec -it --user www-data nextcloud php occ config:system:set loglevel --value=0
  • docker exec -it --user www-data nextcloud php occ app:install app_api
  • Now you need to create the manual_install daemon via UI (e. g. http://localhost:8080/settings/admin/app_api)
  • Set the shared secret in the docker-compose.yml file via Nextcloud__Secret env var and use the same for the next cmd

Register the app via local daemon

  • docker exec -it --user www-data nextcloud php occ app_api:app:register --force-scopes --wait-finish --json-info "{\"appid\":\"dotnet_microservice\",\"name\":\".NET Microservice\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"dotnet-microservice\",\"port\":8080,\"scopes\":{\"required\":[\"FILES\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" dotnet_microservice manual_install

Register the app via local daemon with Visual Studio debugger attached

  • docker exec -it --user www-data nextcloud php occ app_api:app:register --force-scopes --wait-finish --json-info "{\"appid\":\"dotnet_microservice\",\"name\":\".NET Microservice\",\"daemon_config_name\":\"manual_install\",\"version\":\"1.0.0\",\"secret\":\"12345\",\"host\":\"host.docker.internal\",\"port\":5047,\"scopes\":{\"required\":[\"FILES\"],\"optional\":[]},\"protocol\":\"http\",\"system_app\":0}" dotnet_microservice manual_install

nextcloud-dotnet-microservice's People

Contributors

splitt3r avatar dependabot[bot] avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.