From 2f04767d0497843fdbc5061342a5a444cfd4176b Mon Sep 17 00:00:00 2001 From: Daniel Promise Date: Sat, 30 Sep 2023 17:20:52 +0100 Subject: [PATCH 1/3] feat:ffmpeg install --- .env | 7 +------ nixpacks.toml | 2 ++ 2 files changed, 3 insertions(+), 6 deletions(-) create mode 100644 nixpacks.toml diff --git a/.env b/.env index 6bc4f60..589be2d 100644 --- a/.env +++ b/.env @@ -1,8 +1,3 @@ APP_ENV=local -PORT=5005 - -CLOUDINARY_API_SECRET= -CLOUDINARY_API_KEY= -CLOUDINARY_CLOUD_NAME= -CLOUDINARY_BASE_URL=https://api.cloudinary.com/v1_1 \ No newline at end of file +PORT=5005 \ No newline at end of file diff --git a/nixpacks.toml b/nixpacks.toml new file mode 100644 index 0000000..86c4e65 --- /dev/null +++ b/nixpacks.toml @@ -0,0 +1,2 @@ +[phases.setup] +nixPkgs = ["...", "ffmpeg"] \ No newline at end of file From f61d3ba14ad3a25fc7a07266bb826b2f663ba6c3 Mon Sep 17 00:00:00 2001 From: Daniel Olayimika <102483755+Pro-282@users.noreply.github.com> Date: Mon, 2 Oct 2023 10:21:49 +0100 Subject: [PATCH 2/3] Create README.md --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..5d2f47b --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# ScreenRecordAPI + +the temporary base url is at https://screenrecordapi-production.up.railway.app + +1. to start recording, send a POST request to https://screenrecordapi-production.up.railway.app/record/start +you will get an UUID in the response JSON access it with .data.uuid + +2. the binary chunks should be sent to POST https://screenrecordapi-production.up.railway.app/record/upload/{uuid} + +3. Stop the record with POST https://screenrecordapi-production.up.railway.app/record/stop/{uuid} From 5b9cb338c98f8ec8db019596b8473c031e7cab50 Mon Sep 17 00:00:00 2001 From: Daniel Promise Date: Mon, 2 Oct 2023 13:04:43 +0100 Subject: [PATCH 3/3] doc:Added Postman doc link --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 5d2f47b..0862d93 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,12 @@ # ScreenRecordAPI +* Postman documentation available here [documenation](https://documenter.getpostman.com/view/29925722/2s9YJc1NWX) -the temporary base url is at https://screenrecordapi-production.up.railway.app +## Short (quick description) +The temporary base url is at https://screenrecordapi-production.up.railway.app -1. to start recording, send a POST request to https://screenrecordapi-production.up.railway.app/record/start +1. To start recording, send a POST request to https://screenrecordapi-production.up.railway.app/record/start you will get an UUID in the response JSON access it with .data.uuid -2. the binary chunks should be sent to POST https://screenrecordapi-production.up.railway.app/record/upload/{uuid} +2. The binary chunks should be sent to POST https://screenrecordapi-production.up.railway.app/record/upload/:uuid -3. Stop the record with POST https://screenrecordapi-production.up.railway.app/record/stop/{uuid} +3. Stop the record with POST https://screenrecordapi-production.up.railway.app/record/stop/:uuid