substance / dar-server Goto Github PK
View Code? Open in Web Editor NEWFilesystem backend for document archives
Filesystem backend for document archives
$ git clone https://github.com/substance/dar-server.git
$ cd dar-server
-- here I created an archives folder and a sub folder named example1, in which I placed the example from https://github.com/substance/dar/tree/master/examples/classic-manuscript
$ npm install
$ node lib/server.js -d /archives/example1
Instructions say that I can access /archives/example1 via http://localhost:5000/example1
However, this shows the following error in the browser
Failed to load resource: the server responded with a status of 404 (Not Found) at the path http://localhost:5000/example1
Hello,
I have created a new version of the dar-server.
It is a koa.js application which can read/write Dars from filesystem as well as from a MongoDB database.
The new dar-server should be backward-compatible with the current implementation, however I'm not a 100% sure.
The dar-server is furthermore part of a "dar-backend-suite" (didn't came up with a better name yet).
The dar-backend-suite is a collection of packages which a developer can use to create backends for Dar-based client applications. Every package constitutes an npm packge in it's own right and can be added to a project as a dependency. All in all the developer can pick and choose those packages he needs. Furthermore, the division of the different components into separate packages makes the code easier to understand and fosters code reuse.
Since the dar-server is part of this suite I didn't issue a pull request. If you like the new version of the dar-server as well as the approach taken with the dar-backend-suite maybe a new repository could be created within the "substance-workspace".
Best regards, Matthias
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.