Code Monkey home page Code Monkey logo

fuchsia's Introduction

Hi there im Sepp! ๐Ÿ‘‹

Twitter Follow

  • ๐Ÿ”ญ Iโ€™m currently working on: vaporcss
  • ๐ŸŒฑ Iโ€™m currently learning: all the things
  • ๐Ÿ‘ฏ Iโ€™m looking to collaborate on: Anything
  • ๐Ÿ˜„ Pronouns: he/him

I am a Full Stack Software Engineer based in Dorset, UK. I have a passion for building things with code, in particular creating packages for other developers to use.


Toolbox

css3 javascript logo typescript logo react logo next logo gatsby logo redux logo golang logo node logo python logo golang logo rustlang logo


fuchsia's People

Contributors

phl3bas avatar

Stargazers

 avatar

Watchers

 avatar

fuchsia's Issues

Create SSR template engine

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>

create entity components for mongoose adapter

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>
);

Hook application options objects up to application initialisation

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 : should take an object
{
"urlencoded" : {
    "extended": "boolean",
    "inflate": "boolean",
    "limit": "number",
    "parameterLimit": "number",
    "type": "string"
  }
}
  • bodyParser: should take an object
{
"bodyParser" : {
    "strict": "boolean",
    "inflate": "boolean",
    "limit": "number",
    "type": "string"
  }
}
  • static: should take an object or string
{
"static" : "string"
}



{
"static" : {
    "dotfiles": "string",
    "etag": "boolean",
    "extensions": "array<string>",
    "fallthrough": "string",
    "immutable": "boolean",
    "index" : "string",
    "lastModified" : "boolean",
    "maxAge" : "number",
    "redirect" : "boolean",
  }
}
  • caseSenstiveRouting: Boolean
  • env: String
  • etag: Array
  • jsonPCallbackName: String
  • jsonEscape: Boolean
  • jsonReplacer: String
  • jsonSpaces: number
  • queryParser: string
  • strictRouting: Boolean
  • subdomainOffset: number
  • trustProxy: string
  • views: string
  • viewCache: boolean
  • viewEngine: string
  • xPoweredBy: boolean

abstract request handlers

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'))

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.