Skip to content

foxhound87/rfx-next

Repository files navigation

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

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

Releases

No releases published

Packages

No packages published