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
Appwrite Browser is simple to use and extend REST API meant to simplify screenshot preview, reports, and analysis.
7
+
Docker Browser is simple to use and extend REST API meant to simplify screenshot preview, reports, and analysis.
8
8
9
9
## Usage
10
10
11
-
Add Appwrite Browser to your `docker-compose.yml`.
11
+
Add Docker Browser to your `docker-compose.yml`.
12
12
13
13
```
14
14
services:
15
15
appwrite-browser:
16
-
container_name: appwrite-browser
17
16
image: appwrite/browser:0.1.0
18
-
networks:
19
-
- appwrite
20
-
environment:
21
-
- APPWRITE_BROWSER_SECRET=secret
22
17
```
23
18
24
-
Start browser alongside rest of your services.
19
+
Start Docker Browser alongside rest of your services.
25
20
26
21
```
27
22
docker compose up -d
28
23
```
29
24
30
-
Communicate with Appwrite Browser endpoints.
25
+
Communicate with Docker Browser endpoints.
31
26
32
27
```bash
33
-
curl -X GET -H "Authorization: Bearer secret"http://appwrite-browser:3000/screenshot?url=http://google.com/ping
28
+
curl -X POST -H 'content-type: application/json' -d '{"url":"http://google.com/ping"}'http://appwrite-browser:3000/v1/screenshots
34
29
```
35
30
36
31
## Development
@@ -43,13 +38,7 @@ To install dependencies, run the following command.
43
38
pnpm i
44
39
```
45
40
46
-
Next, duplicate `.env.example` into `.env`, and update the values.
47
-
48
-
```bash
49
-
cp .env.example .env
50
-
```
51
-
52
-
Finally, start the server by running `npm start`, and visit use endpoint `http://localhost:3000` as REST API endpoint. To authorize, provide header `Authorization: Bearer <secret>`.
41
+
Next, start the server by running `npm start`, and visit use endpoint `http://localhost:3000` as REST API endpoint.
0 commit comments