ПО, ЭВМ и АСУ из Таможенного Союза

Информация о пользователе

Привет, Гость! Войдите или зарегистрируйтесь.


Вы здесь » ПО, ЭВМ и АСУ из Таможенного Союза » web-разработка » Обнюхивание deta.space


Обнюхивание deta.space

Сообщений 1 страница 6 из 6

1

Ранее по теме:
deta.space
Git на sourceforge
Как сделать, чтобы всё было, и за это ничего не было?

2023-02-14, Соглашение
https://deta.space/terms
«Your use of the Service is subject to this Acceptable Use Policy»
«If you have any questions about these Terms, please contact us at hello@deta.space»

Политика по персональным данным:
https://deta.space/privacy
«f you choose to connect a GitHub profile to your Deta account, we will access certain information obtained from GitHub regarding your account»
«You may also opt out from receiving commercial email from us by sending your request to us by email at team@deta.space»
«We promise to respond as soon as possible and in any case within fourteen (14) business days of your request»
«We use AWS as an identity provider. AWS stores any password you may provide when opting to use email login. We do not have access to this password.»

Abstract Computing UG
for profit company with its operational headquarters at Akazienstr. 3a, 10283 Berlin, Germany.

Deta cloud computing platform
Deta Space platform
Deta API

Предлагают посмотреть видео:
https://www.youtube.com/watch?v=423kzQykSW0

Think of Canvas as your personal cloud's home screen. It helps you manage building, launching, and using personal cloud apps.
We have already installed a few apps for you:
Builder
    Builder is your tool to develop, test, and launch your own apps with Deta Space.
Documentation
    The Documentation gives you instructions on how to build apps with Deta Space.
Discovery
    Discovery is the portal to find and install apps that other devs have built with Deta Space.

Отредактировано Лис (2023-03-28 03:13:16)

0

2

https://deta.space/manual/features/scheduled-actions

Документация
https://deta.space/docs/en/introduction/start

To install the Space CLI on Linux, open a Terminal and enter:
curl -fsSL https://get.deta.dev/space-cli.sh | sh
This will download the binary which contains the CLI code. It will try to export the space command to your path.

Once you have successfully installed the Space CLI, you’ll need to log in to Space.
The Space CLI authenticates itself with ‘Access Tokens’.
You can create an access token under Settings in your Space. Just type ‘settings’ in Teletype to open them.

$ ./space-cli.sh
################################################################################################################################################### 100.0%
Archive:  /tmp/tmp.WVqZagC2UL/space.zip
  inflating: /home/user/.detaspace/bin/space 
Deta Space CLI was installed successfully to /home/user/.detaspace/bin
Run 'space --help' in a new shell to get started

$ space --help
Deta Space command line interface for managing Deta Space projects.
Complete documentation available at https://go.deta.dev/docs/space/alpha

Usage:
  space [flags]
  space [command]

Available Commands:
  completion  Generate the autocompletion script for the specified shell
  dev         Spin up a local development environment for your Space project
  exec        executes a command in space context
  help        Help about any command
  link        link code to project
  login       login to space
  new         create new project
  open        open current project in browser
  push        push code for project
  release     create release for a project
  validate    validate spacefile in dir
  version     Space CLI version

Flags:
  -h, --help   help for space

Use "space [command] --help" for more information about a command.

0

3

$ space login

To authenticate the Space CLI with your Space account, generate a new access token in your Space settings and paste it below:

? Enter access token (41 chars) > *****************************************

👍 Login Successful!

$ space new

? What is your project's name? > discourse

~ Spacefile found locally, validating Spacefile ...

Nice, your Spacefile looks good!
~ Creating project discourse with your Spacefile ...
✓ Project discourse created successfully!

Next steps:

Find your project in Builder: https://deta.space/builder/c0toj6r1UDpL
Use the Spacefile to configure your app: https://go.deta.dev/docs/spacefile/v0
Push your code to Space with space push

$ space push

Validating Spacefile...

i No app icon specified
✓ Micro "static-test-page"
                                                     
Your Spacefile looks good, proceeding with your push!!
                                                     
✓ Successfully started your build!
✓ Successfully pushed your Spacefile!

~ Pushing your code & running build process...

2023/03/28 00:56:45 Parsing Spacefile...
2023/03/28 00:56:45 Scanned micros:
2023/03/28 00:56:45 └ static-test-page
2023/03/28 00:56:45 Packaging code for micros...
2023/03/28 00:56:45 [static-test-page] zipping code package
2023/03/28 00:56:45 [static-test-page] ingesting entry files
2023/03/28 00:56:45 Packaging dependencies for micros...
2023/03/28 00:56:45 [static-test-page] installing deps
2023/03/28 00:56:45 [static-test-page] installing wrapper deps
2023/03/28 00:56:51 [static-test-page] running command: npm install express --prefix deta_dependencies
2023/03/28 00:56:51 [static-test-page]
2023/03/28 00:56:51 [static-test-page] added 57 packages, and audited 58 packages in 3s
2023/03/28 00:56:51 [static-test-page]
2023/03/28 00:56:51 [static-test-page] 7 packages are looking for funding
2023/03/28 00:56:51 [static-test-page]   run `npm fund` for details
2023/03/28 00:56:51 [static-test-page]
2023/03/28 00:56:51 [static-test-page] found 0 vulnerabilities
2023/03/28 00:56:51 [static-test-page] npm notice
2023/03/28 00:56:51 [static-test-page] npm notice New major version of npm available! 8.15.0 -> 9.6.2
2023/03/28 00:56:51 [static-test-page] npm notice Changelog: <https://github.com/npm/cli/releases/tag/v9.6.2>
2023/03/28 00:56:51 [static-test-page] npm notice Run `npm install -g npm@9.6.2` to update!
2023/03/28 00:56:51 [static-test-page] npm notice
2023/03/28 00:56:51 [static-test-page] zipping deps
build complete...created revision: monitor-bzbj

i Updating your Builder instance with the new revision...

starting installation...
fetching release configuration...
allocating resources..
configuring resource 1 out of 1...
completed...
                                                                 
✓ Successfully pushed your code and updated your Builder instance!
Builder instance: https://discourse-1-q8649933.deta.app

A Micro is a lightweight compute service running inside your app which can be exposed to the outside using HTTP.
micros:
  - name: frontend
    src: .
    engine: svelte
    primary: true
    public: true
Only the Micro with the primary flag set to true will be served on the root domain. The other Micros will be served on their respective paths under the root domain. For example, if a Micro is named api (or has the path property set to api), it will be served on https://app-name.deta.app/api
Every app on Space can contain up to 5 Micros, which are private by default. You can make individual Micros public using the app’s Spacefile. Just set the public flag to true for each Micro you want to publicize.

(интересно, а cgi-bin делается так же или по-другому?)

public: true is just a shorthand for public_routes: ["/*"]. We recommend using public_routes instead if you need more customization.
Use public_routes to define which paths of your Micro should be available to the public. These routes will not be protected behind auth.
public_routes:
      - "/test" # exact match
      - "/public/*" # wildcards
      - "/api/*/docs" # wildcards can be placed anywhere
Requests made to your Micro matching any of the routes defined in public_routes will bypass Space’s authentication entirely.

Отредактировано Лис (2023-03-28 04:12:07)

0

4

To store files, Space apps can use Deta Drive, a fully-managed, secure and scalable file storage service for Deta.
Each app can create and use as many Drives as it needs. Drive can be accessed using the Drive SDK or the Drive HTTP API.
Take a look the the Drive Reference on how to use it.
https://deta.space/docs/en/reference/drive/about
https://deta.space/docs/en/reference/drive/sdk
https://deta.space/docs/en/reference/base/HTTP

You can get your Project Key and your Project ID of your project in Builder. You need these to talk with the Deta Drive API.

Проблема: Этот Deta Drive не монтируется в инстанс micro,
то есть его нельзя взять и использовать под базу данных mysql или postgres.
Это плохо для установки Discourse...
Можно туда, например, делать бекапы периодически.

Discourse установить всё ещё можно, но сборка будет непростой,
непонятно, что будет происходить при апдейте (будут ли сохраняться данные).

Отредактировано Лис (2023-03-28 04:49:14)

0

5

Use include to specify which files and directories in your Micro’s src should be part of the final app package.
If include is used, everything not part of it will be ignored and won’t be part of your app. You can specify multiple files and directories.

It’s important to note that your app has to run on port 8080. Feel free to use the PORT environment variable to automatically set the port.

«Deleting an app cannot be undone and all its data is permanently lost»

Если учитывать, что все приложения (микросервисы), которые принадлежат разным людям,
общаются между собой через web API, то каким образом они обмениваются контактами?

Хорошо, если Indie Login, там есть URL, и можно догадаться, какой URI. Но откуда возьмётся API KEY?

Отредактировано Лис (2023-03-28 06:15:53)

0

6

Написал им на почту, теперь надо три недели подождать (14 business days), и позаниматься в это время чем-нибудь ещё.

Поискать, например, F2F - форумный движок

Отредактировано Лис (2023-03-28 15:15:43)

0


Вы здесь » ПО, ЭВМ и АСУ из Таможенного Союза » web-разработка » Обнюхивание deta.space