All Projects → velop-io → server

velop-io / server

Licence: MIT license
Serve one or more react apps! - Custom routes, HotReloading, Authenticated Apps/routes, Relay, Webpack..

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to server

koa-webpack-server
Koa2 webpack all-in-one environment for universal development
Stars: ✭ 14 (-30%)
Mutual labels:  isomorphic, universal, koa2
universal-react-relay-starter-kit
A starter kit for React in combination with Relay including a GraphQL server, server side rendering, code splitting, i18n, SEO.
Stars: ✭ 14 (-30%)
Mutual labels:  relay, isomorphic, universal
Arc
React starter kit based on Atomic Design
Stars: ✭ 2,780 (+13800%)
Mutual labels:  isomorphic, universal
Beidou
🌌 Isomorphic framework for server-rendered React apps
Stars: ✭ 2,726 (+13530%)
Mutual labels:  isomorphic, universal
isomorphic-relay-boilerplate
No description or website provided.
Stars: ✭ 30 (+50%)
Mutual labels:  relay, isomorphic
Celestite
Beautifully reactive, server-side rendered Svelte apps w/ a Crystal backend
Stars: ✭ 185 (+825%)
Mutual labels:  isomorphic, universal
React Isomorphic Starterkit
Create an isomorphic React app in less than 5 minutes
Stars: ✭ 2,326 (+11530%)
Mutual labels:  isomorphic, universal
isomorphic-relay-app
Example isomorphic React-Relay-(Modern / Classic)-Router app and helper lib that connects to Artsy's GraphQL service
Stars: ✭ 13 (-35%)
Mutual labels:  relay, isomorphic
Project Webcube
Continuously updated JS infrastructure for modern web dev
Stars: ✭ 141 (+605%)
Mutual labels:  isomorphic, universal-app
Isomorphic Relay Router
Adds server side rendering support to react-router-relay
Stars: ✭ 141 (+605%)
Mutual labels:  relay, isomorphic
Isomorphic Relay
Adds server side rendering support to React Relay
Stars: ✭ 247 (+1135%)
Mutual labels:  relay, isomorphic
Minrouter
a micro middleware router for isomorphic javaScript web apps
Stars: ✭ 159 (+695%)
Mutual labels:  isomorphic, universal
React Redux Styled Hot Universal
react boilerplate used best practices and focus on performance
Stars: ✭ 147 (+635%)
Mutual labels:  isomorphic, universal
Universal React
A universal react starter, with routing, meta, title, and data features
Stars: ✭ 247 (+1135%)
Mutual labels:  isomorphic, universal
Isomorphic Lab
Isomorphic React experimentation
Stars: ✭ 144 (+620%)
Mutual labels:  isomorphic, universal
React Isomorphic Video Game Search
An Isomorphic application demo powered by React, reflux, react-router-component, express, superagent and the Giant Bomb API.
Stars: ✭ 253 (+1165%)
Mutual labels:  isomorphic, universal
Razzle Material Ui Styled Example
Razzle Material-UI example with Styled Components using Express with compression
Stars: ✭ 117 (+485%)
Mutual labels:  isomorphic, universal
Universal React Tutorial
📓 How to build universal web apps with React.
Stars: ✭ 136 (+580%)
Mutual labels:  isomorphic, universal
React App
Create React App with server-side code support
Stars: ✭ 614 (+2970%)
Mutual labels:  relay, isomorphic
grand central
State-management and action-dispatching for Ruby apps
Stars: ✭ 20 (+0%)
Mutual labels:  isomorphic, universal

velop-server

Greenkeeper badge Travis npm npm Coverage Status code style: prettier

Serve one or more React apps with one simple call. Supports Universal rendering, Webpack, HotReloading, Relay, Passport, FoundRouter, Graphql out of the box! Fully editable setup with a simple set of functions and commands. You can also add custom routes or static paths at your needs. Even add a authentication layer on top of the routes or apps you what! All this is possible with a simple set of functions.

Why?

This is not a standardization nor a boilerplate or startupkit. This is a engine that can serve the js for you in the way you want. A developer should not put resources into setting up core server, only provide details of what they want to serve and how to do it. The rest will @velop/server take care of!

Why not Next.js?

NextJS is a great tool for creating a boilerplate setup that you can edit for your needs. Full cretid to Zeit for some awesome work! But it has some core problems like serving multiple apps, custom static folders, authentication to routes, or just serving other then react apps. @velop/server aims to solve these problems and with a more simple solution. Calling functions and not configuring files.

Table of Contents

Installation

$ npm i -S @velop/server
or
$ yarn add @velop/server

Getting started

Create a awsome react app app/Routes.js with found routing/navigation Remember you must return a found makeRouteConfig.

Create a new file server.js with contents:

const Server = require('@velop/server')

var server = new Server({
  environment: 'development',
  hostname: 'localhost',
  port: 3000,
});

//To add a file or a folder with routes?
server.addRoute('routes/');

//To add a React app with serverside render support
server.addReactRoute(
  '',   // URI prefix
  path.resolve(process.cwd(), 'app/Routes.js'), //path to APP file
);

//Start server!
server.start();

Create a .babelrc file for your needs:

{
  "presets": [
    "react",
    "stage-0"
  ],
  "plugins": [
    "transform-runtime"
  ],
  "env": {
    "development": {
      "plugins": ["react-hot-loader/babel"]
    }
  }
}

Run the server:node server.js Good luck!

Features

Thanks to:

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].