Coder Social home page Coder Social logo

shattercms's Introduction

ShatterCMS

shattercms's People

Watchers

Florian Pallas avatar

shattercms's Issues

Authentication through gateway

Authentication is an important and integral part of any API and should therefore be managed through the gateway module. There should be a standard to handle authentication, while still leaving enough breathing space for custom behavior, etc.

Authentication must be possible to change / enforce without touching the sub modules. The gateway needs to provide the current user and a function to test permissions to every sub module through the context. These two functions can then be provided by other modules, taking care of storing, managing permissions and authenticating users.

There must be no directives in use, as those would need to be added into each submodule.

Add layouts to the shards module

Layouts can provide a way to reuse a certain page structure in many places. Every page should have a layout property, defining the layout to be used. Layouts could include the Navigation and Footer elements for example.

Add a posts module

This module should make it easy to create a simple blog. It should take of creating, modifying, deleting, etc.
It could also be expanded to provide a comments, likes, categories and more.

Order shards when returned

When requesting a page, the shards are not returned in order. To prevent the need to sort the shards on the client, they should get returned in the correct order from the server.

Provide a way to pass options to the modules

Use the context object in apollo server to include a config object which holds the config to each object as key.

{
  "gateway": {
    "dev": true
  },
  "shards": {
    "secret": "1234"
  }
}

Expose database connection parameters to the user

Add the database connection options to the gateway constructor to give the user more control over the database name, username and password.

If possible the user should also be able to choose the type of database, although some problems could arise from that (Different databases require different decorators, etc).

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.