An open API service indexing awesome lists of open source software.

https://github.com/foxhound87/rfx-next

Next.js, FeathersJS, MobX + rfx-core SSR mgmt.
https://github.com/foxhound87/rfx-next

feathers material-ui mobx nextjs postcss react ssr tachyons

Last synced: about 1 month ago
JSON representation

Next.js, FeathersJS, MobX + rfx-core SSR mgmt.

Awesome Lists containing this project

README

          

## Features

* Next.js SSR App
* FeathersJS App Connector
* FeathersJS Auth
* Mobx React Form
* Tachyons CSS
* Material UI 3
* PostCSS
* Babel 7
* ESLint 5

## Setup Feathers App

Installation using [Feathers Plus Generator](https://generator.feathers-plus.com/get-started/)

`npm i -g @feathers-plus/cli`

`feathers-plus generate app`

* configure REST + Socket.io

`feathers-plus generate authentication`

* configure Username + Password (Local)

* add `email` and `password` fields in the `users` model.

* setup the hostname `api.next.local`

* setup [Feathers Auth Management](https://github.com/feathers-plus/feathers-authentication-management) (optional)

## Run RFX NEXT

#### In Development:

Create a `.env` file in the root with `ENV=development`.

This will load the config from `config/env/development.json`.

`npm run dev`

> go to: `http://localhost:3000`

or using nanobox:

`nanobox run npm run dev`

> go to: `http://www.next.local:3000`

#### In Production:

Create a `.env` file in the root with `ENV=production`.

This will load the config from `config/env/production.json`.

`npm run build`

`npm run start`

or using nanobox:

`nanobox deploy {your-app-name}`

## Additional suggestions

RFX-Next is composed by the following directories: app, config, pages, shared.

This structure has been designed to provide `config` and `shared` as git `submodules`.

In this manner, some code and configs can be shared in different apps for a better microservices implementations.