question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build a separate backend for storing JSON files

See original GitHub issue

https://json.excalidraw.com/

I can build a backend on App Engine which will do the following:

  • Endpoint to accept POST requests JSON files (example: https://json.excalidraw.com/api/v1/post/) and returns 200 and some data about the the uploaded file`.
  • Endpoint to accept GET requests with a given hash and return JSON if found, 404 if not. (example: https://excalidraw-json.appspot.com/api/v1/2fd4e1c67a2d28fced849ee1bb76e7391b93eb12.json)
  • Automatically delete very old ones that haven’t been accessed for a long time
  • Accept requests only from https://excalidraw.com and localhost:3000
  • Count potential visits of every drawing
  • Force HTTPS
  • Ability for the admins to view and manually delete JSON files
  • Keep in mind if we want to support if in the year 2025 the support for GitHib logins.

Then build the functionality here store, and share via URLs…


P.S. This service most likely will be a paid app, but we could try the free tiers and if anything we could ask Google for some credits, until we get our own sponsors 😃

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

1reaction
vjeuxcommented, Jan 17, 2020

If you want to build all this infra, go for it.

0reactions
lipiscommented, Jan 19, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Create A REST API With JSON Server | by Sebastian - Medium
A common task for front-end developers is to simulate a backend REST service to deliver some data in JSON format to the front-end...
Read more >
How to build a RESTful Node.js API server using JSON files
1. Node API server setup ... First things first, you'll need to make sure you have Node.js installed on your machine and preferably...
Read more >
7 Reliable JSON Hosting Solution for Your Modern Application
To get started, you can use the lightweight backend of n:point to create data, define data structure through JSON Schema, and then lock...
Read more >
Postgres vs. MongoDB for Storing JSON Data
JavaScript Object Notation (JSON) is unstructured, flexible, and readable by humans. Basically, you can dump data into the database however it ...
Read more >
Storing JSON in database vs. having a new column for each key
@Sann You should use a column per value for data that you want to read or query often. Putting someone's name in JSON...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found