nickschot / ember-lux-starter-app

A quick Ember + Lux boilerplate with authentication.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember + Lux Starter App

This app serves as basic boilerplate for an Ember + Lux application.

Features

Authentication

Basic authentication via JWT is provided. Ember-simple-auth and ember-simple-auth-token are used in the client. By default a token is valid for 30 minutes or 7 days when "remember me" is ticked on login. These values can be customized in server/app/utils/constants.

Models

A single User model with basic attributes is present in both the server and the client.

Semantic UI

Semantic UI is available in this package. It is only partially imported by default to keep the file size down. You can change which components you want to import in app/styles/semantic-ui.less.

Note

In the current iteration it is necessary to restart ember-cli (ember serve) after changing the app/styles/theme.config file. This will copy the edited theme file to the correct location: bower_components/semantic-ui/src/theme.confg.


Setup

The repository contains two folders: client and server. These each serve as the root of their respective applications. Below are instructions to setup both and get the complete application running.

Server

  • Create a server/.env file with JWT_SECRET=SomeImpossibleSecret
  • Globally install Lux by running npm install -g lux-framework
  • Install dependencies by running npm install
  • Create, migrate and seed an sqlite database by running lux db:create && lux db:migrate && lux db:seed
  • Start the development server by running npm run dev

Client

  • Globally install ember-cli by running npm install -g ember-cli
  • Install dependencies by running npm install && bower install
  • Start the application by running ember s

You can now visit the application by going to http://localhost:4200.


For further documentation please consult the Ember and Lux websites.

About

A quick Ember + Lux boilerplate with authentication.


Languages

Language:JavaScript 67.8%Language:HTML 23.7%Language:CSS 8.5%