seppwc / fuchsia Goto Github PK
View Code? Open in Web Editor NEWThe JSX/TSX web application framework built upon express - build declarative web servers using JSX/TSX syntax
License: MIT License
The JSX/TSX web application framework built upon express - build declarative web servers using JSX/TSX syntax
License: MIT License
users should be able to create models/entities using jsx/tsx
example
const Episode = () => (
<Document name='Episode'>
<Field name='id'>
<ID />
</Field>
<Field name='name'>
<String />
</Field>
<Field name='Length'>
<Float />
</Field>
</Document>;
);
const Character = () => (
<Document name='Character'>
<Field name='name'>
<String />
</Field>
<Field name='appearsIn' array>
<Episode />
</Field>
</Document>
);
create a built in SSR template engine to use in MVC Projects, should be its own package and should be able to integrated it with a regular Express or other Node app.
anything in {{ ... }} should be evaluated as plain javascript, {{ .. }} must take a call back function that will with return a string or an array of strings, and make use of template strings for data interpolation
example:
// data { title: "FuchsiaJS", items: ["one", "two", "three"]}
// input
<h1>{{ ()=> this.title }}</h1>
<ul>
{{
()=> this.items.map(item => `<li>${item}</li>`
}}
</ul>
//output
<h1>FuchsiaJS</h1>
<ul>
<li>one</li>
<li>two</li>
<li>three</li>
</ul>
at the moment the curried function syntax is a bit odd, i think this functionality needs to be abstracted more in the route components. maybe so the new routes will only receive the request object and the functions return value will be parsed as json by default.
any reponse types needed will need to be wrapped in a specific Response class (eg. HTTPresponse("hello"), FileResponse('index.html'))
options which can be set currently in the FuchsiaFactory.create() method or in Fuchia.config.json currently do nothing (except databaseOptions) these need to be hooked up.
and include tests.
options:
{
"urlencoded" : {
"extended": "boolean",
"inflate": "boolean",
"limit": "number",
"parameterLimit": "number",
"type": "string"
}
}
{
"bodyParser" : {
"strict": "boolean",
"inflate": "boolean",
"limit": "number",
"type": "string"
}
}
{
"static" : "string"
}
{
"static" : {
"dotfiles": "string",
"etag": "boolean",
"extensions": "array<string>",
"fallthrough": "string",
"immutable": "boolean",
"index" : "string",
"lastModified" : "boolean",
"maxAge" : "number",
"redirect" : "boolean",
}
}
should be able to register models to the app where they are then passed into controllers as a parameter,
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.