You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When considering the public API, we take into account the tool configuration and external requirements of the framework-dependent binary. Meaning that basically, breaking changes in configurations or in the runtime requirements should be causing a major version increment.
7
+
When considering the public API, we take into account the tool configuration and external requirements of the framework-dependent binary. Meaning that basically, breaking changes in configuration files, command-line syntax, or in the runtime requirements should be causing a major version increment.
Copy file name to clipboardExpand all lines: README.md
+10-58Lines changed: 10 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,16 +8,18 @@ Installation
8
8
There are two supported Emulsion distributions: as a framework-dependent .NET application, or as a Docker image.
9
9
10
10
### .NET Application
11
-
To run Emulsion as [a framework-dependent .NET application][docs.dotnet.framework-dependent], you'll need to [install .NET runtime][dotnet.install] version 8.0 or later.
11
+
To run Emulsion as [a framework-dependent .NET application][docs.dotnet.framework-dependent], you'll need to [install .NET runtime][dotnet] version 8.0 or later.
12
12
13
13
Then, download the required version in the [Releases][releases] section.
14
14
15
-
After that, configure the application, and start it using the following shell command:
15
+
After that, configure the application (see the following section), and start it using the following shell command:
If `optional-path-to-json-config-file` is not provided, Emulsion will use the `emulsion.json` file from the current directory.
22
+
21
23
### Docker
22
24
It is recommended to use Docker to deploy this application. To install the application from Docker, you may use the following Bash script:
23
25
@@ -47,18 +49,8 @@ where
47
49
-`$DATA` is the absolute path to the data directory (used by the configuration)
48
50
-`$WEB_PORT` is the port on the host system which will be used to access the content proxy
49
51
50
-
Build
51
-
-----
52
-
53
-
Install [.NET SDK][dotnet] 8.0 and Node.js 18 or newer for your platform, then run:
54
-
55
-
```console
56
-
$ dotnet build
57
-
```
58
-
59
-
Configure
60
-
---------
61
-
52
+
Configuration
53
+
-------------
62
54
Copy `emulsion.example.json` to `emulsion.json` and set the settings. For some settings, there are defaults:
63
55
64
56
```json
@@ -130,62 +122,22 @@ Current configuration system allows the following:
130
122
2. When receiving a piece of Telegram content (a file, a photo, an audio message), the bot will send a link to `https://example.com/telegram/content/<some_id>` to the XMPP chat.
131
123
3. When anyone visits the link, the reverse proxy will send a request to `http://localhost/content/<some_id>`, which will take a corresponding content from the database.
132
124
133
-
Test
134
-
----
135
-
136
-
To execute the tests:
137
-
138
-
```console
139
-
$ dotnet test
140
-
```
141
-
142
-
Run
143
-
---
144
-
145
-
Requires [.NET Runtime][dotnet] version 8.0 or newer.
146
-
147
-
```console
148
-
$ dotnet run --project ./Emulsion [optional-path-to-json-config-file]
149
-
```
150
-
151
-
Docker Publish
152
-
--------------
153
-
To build and push the container to Docker Hub, use the following commands:
0 commit comments