pirtleshell / baby-got-backend Goto Github PK
View Code? Open in Web Editor NEWcoming soon
coming soon
build a rudimentary editor that can change the contents of files
in addition to #1, we need endpoints for
POST
/posts
DELETE
/posts/id
set this bad boy up with routing and the capacity to switch views!
When template
is defined on the pageSpec
, or, when the route is expressed with a wildcard parameter (such as /object/:id
), we want the following behavior:
pageSpec.template
-> template
should take precedence over filename
for the file to be edited in the editordataObject
passed to render
must change accordinglyWe need to accept some definitions of how to get particular data objects to mock the rendering.
Maybe a function of the urlParams
called getData
that returns the dataObject
to be passed to the data function.
a common use case is for render funcs to take a text string, or to take the filename. we should have options for both these cases.
render
might better be called renderFromText
, and is for use cases like markdown.render(text)
or render(text, dataObject)
.renderFromFilename
is for use cases like pug.renderFilename(filenameOrTemplate, dataObject)
.dataObject
the dataObject
defaults to the postSpec
. if getData
is defined, dataObject
is whatever is returned by getData(urlParams)
. if the route has wildcards & there is no getData
func defined, the urlParams
should also be passed to render
...
getData
pageSpec.mockData
for the default object used to render? or maybe mockUrlParams
or defaultUrlParams
?
also going to need some way to differentiate post types from actual instances of them...
endpoints for
GET
/posts/<id>
)POST
or PUT
? or PATCH
? /posts/<id>
)allow filtering in the ListViewer on some properties on each post
.
eventually we can add in categories/tag-type support here.
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.