Giter Club home page Giter Club logo

ember-boilerplate's Introduction

Ember-boilerplate

Tests

Ember logo TRIPTYK logo

Preconfigured 5.x Ember project with

  • Embroider
  • Typescript integration (ember-cli-typescript)
  • Validations (ember-immer-changeset + yup)
  • Tailwindcss 3.x, with primary and secondary colors configured
  • Flash messages (ember-cli-flash)
  • Tests (ember-test-selectors, ember-cli-page-object)
  • Sessions,Login,Logout,... (ember-simple-auth,ember-simple-auth-token)
  • Ember data next gen (RequestManager based)
  • Ember concurrency
  • Test seeding & parallelization (ember-exam)
  • dev & test mocking (msw)
  • Translations (ember-intl)
  • Authorizations (ember-can)
  • Pre-made registration flow (login/register/forgot-password)

VSCODE IDE

  • VSCODE Ready, all rules are setup for a great developing experience.

Additional Tooling

  • With-backend: with-backend.js Starts the ember app with a backend synchronously.
  • Husky: checks linting + code duplication + integration & unit tests before commiting to VSC.

Docker

  • A docker image can be found in images.

CI

A github workflow CI is provided.

Approach

Controllers

  • We have the rule 'ember/no-controllers' activated, so usage of controllers other than for query params is prohibited. Instead, you must create a component in 'pages'. Each component should accept a @model.

Note: Exception for the ApplicationController, needed for an addon.

Translations

Translations are located: translations/

  • Each component must have his translation file
  • A global translation file can be created
  • YAML files keys in snake_case

Changesets & Validations

Changesets are located: app/changesets/ Changesets services are located: app/services/changesets Validations are located: app/validations/

  • Each changeset has it's own file and it's own class.
  • All changesets comes from ember-immer-changeset. It provides full type-checking of changesets.
  • A changeset can have a service associated that persists the data of a changeset to an endpoint.

Authorizations

Authorizations are located: app/abilities/.

Components

Components are located: app/components/.

  • Pod structure.

API Mocking

Development mocks are in app/handlers. Testing mocks are split in the tests folders.

Installation

  • git clone [email protected]:TRIPTYK/ember-boilerplate.git this repository
  • cd ember-boilerplate
  • rm -rf .git
  • git init
  • pnpm install

Running / Development

Running Tests

  • pnpm test

Linting

  • pnpm lint
  • pnpm lint:fix

Building

  • pnpm build --mode=dev (development)
  • pnpm build (production)

ember-boilerplate's People

Contributors

amauryd avatar ember-tomster avatar gilles-bertrand avatar remadex avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ember-boilerplate's Issues

Upgrade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.