All Projects → cubic-js → cubic

cubic-js / cubic

Licence: MIT license
📦 Easy to scale, zero-config, real-time focused app platform for node.js

Programming Languages

javascript
184084 projects - #8 most used programming language
Vue
7211 projects
SCSS
7915 projects

Projects that are alternatives of or similar to cubic

Ocaml Containers
A lightweight, modular standard library extension, string library, and interfaces to various libraries (unix, threads, etc.) BSD license.
Stars: ✭ 367 (+2193.75%)
Mutual labels:  lightweight, modular
Digital Restaurant
DDD. Event sourcing. CQRS. REST. Modular. Microservices. Kotlin. Spring. Axon platform. Apache Kafka. RabbitMQ
Stars: ✭ 222 (+1287.5%)
Mutual labels:  modular, restful-api
logger
☠ 😈 👀 Simple,Secure & Undetected (6.11.2017) keylogger for Windows :)
Stars: ✭ 37 (+131.25%)
Mutual labels:  lightweight
SpringsScala
Sample Projects for Creating Springs Web services in Scala
Stars: ✭ 16 (+0%)
Mutual labels:  restful-api
twigs
Alternate firmware for Mutable Instruments Branches synthesizer module
Stars: ✭ 21 (+31.25%)
Mutual labels:  modular
unity-puzzlesystem-asset
The asset for the Unity Engine that allows to quickly create customisable puzzles.
Stars: ✭ 21 (+31.25%)
Mutual labels:  modular
tsed
📐 Ts.ED is a Node.js and TypeScript framework on top of Express to write your application with TypeScript (or ES6). It provides a lot of decorators and guideline to make your code more readable and less error-prone.
Stars: ✭ 2,350 (+14587.5%)
Mutual labels:  nodejs-framework
apex-rest-route
A simple framework for building Restful API on Salesforce
Stars: ✭ 75 (+368.75%)
Mutual labels:  restful-api
ecommerce api
E-commerce by Django Rest Framework
Stars: ✭ 156 (+875%)
Mutual labels:  restful-api
sanic-currency-exchange-rates-api
This is a self hosted, free, open source Python Currency Exchange Rate API fork.
Stars: ✭ 20 (+25%)
Mutual labels:  restful-api
InitKit
Neo-InitWare is a modular, cross-platform reimplementation of the systemd init system. It is experimental.
Stars: ✭ 364 (+2175%)
Mutual labels:  modular
software-systems-architecture
A collection of descriptions of the architecture that various systems use.
Stars: ✭ 24 (+50%)
Mutual labels:  restful-api
minidenticons
Super lightweight SVG identicon (icon avatar) generator
Stars: ✭ 89 (+456.25%)
Mutual labels:  lightweight
wombag
Wombag is the alternative, lightweight backend for your Wallabag apps. Wombag supports the Wallabag API.
Stars: ✭ 42 (+162.5%)
Mutual labels:  lightweight
platform
superV Platform for Laravel
Stars: ✭ 24 (+50%)
Mutual labels:  modular
AtomSynth
A modular synthesizer built using the juce api.
Stars: ✭ 20 (+25%)
Mutual labels:  modular
symfony-todo-backend
This is the result of all the videos that were created in the series that i published on the playlist. LINK BELOW
Stars: ✭ 172 (+975%)
Mutual labels:  restful-api
esl
Lightweight and flexible UI component library based on web components technology for creating basic UX modules
Stars: ✭ 53 (+231.25%)
Mutual labels:  lightweight
temps-lite
A smart, good-looking little app which tries to speak your language the way you are used to.
Stars: ✭ 40 (+150%)
Mutual labels:  lightweight
mrapi
A framework for rapid development of API or DAL applications.
Stars: ✭ 20 (+25%)
Mutual labels:  restful-api

cubic

npm Node version dependencies build


Cubic is a simple wrapper that integrates node.js frameworks into one platform that's easy to scale in docker or kubernetes.

This project is still very much in development and lacks documentation in some places, but you can already check out how we've built NexusHub with the help of Cubic.


Features

Cubic comes with everything needed to create a full-size web application for modern standards:

  • Automatically routed API endpoints to HTTP and WebSockets
  • Webpack for optimal dev & prod bundling
  • Full OAuth2 integration
  • Pub/Sub model for real-time data
  • Rate limits and caching on a per-endpoint basis
  • Concise endpoint schema for automated unit tests

We provide all of these features regardless of which http/ws server you choose to use under the hood.


Usage

Before you get started, make sure you have redis and mongodb running on their default ports.

To install cubic to your project:

npm init
npm install cubic cubic-api cubic-auth cubic-ui cubic-client cubic-defaults

This looks like a lot of things, but that's because you don't actually need more than cubic and cubic-api for a minimal API server. Everything else only extends the base functionality for the sake of showing you a fully working web-app.

Entrypoint

Next we'll create index.js as our entrypoint to the server

// index.js
const Cubic = require('cubic')
const cubic = new Cubic()

// Load auth, view and api nodes needed for a basic setup
cubic.bootstrap()

Ready to go

Now all we need to do is run

node index.js

And Cubic will automatically create some default API endpoints and views that you can learn the basics from.
You'll now find your web-app on localhost:3000 🎉


License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].