This app serves as basic boilerplate for an Ember + Lux application.
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
.
A single User model with basic attributes is present in both the server and the client.
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.
In the current iteration it is necessary to restart ember-cli (
ember serve
) after changing theapp/styles/theme.config
file. This will copy the edited theme file to the correct location:bower_components/semantic-ui/src/theme.confg
.
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.
- Create a
server/.env
file withJWT_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
- 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.