House Ninja Mobile App
Before you install the app, you will need the following installed:
After following the ASDF installation instructions, add the nodejs and yarn plugins:
asdf plugin add nodejs https://github.com/asdf-vm/asdf-nodejs.git
asdf plugin add yarn https://github.com/twuni/asdf-yarn
- Install xcodeselect:
xcode-select --install
. Click "Install" after the prompt. - Install an iPhone Simulator.
Note: it's best to pick one of the later iPhone models, with the latest iOS version.
In a directory of your choosing run: git clone [email protected]:houseninjadojo/app.git
cd
into the app directory you just checked out and run: asdf install
.
This will install the nodejs and yarn versions locked in .tool-versions
file and create a version-locked space for global node modules.
npm install -g ember-cli
In the app directory, run: yarn install
.
To help with debugging, VSCode has several helpful addons we recommend you use:
- Unstable Ember Language Server - A popular fork of Ember Language Server with different features. Don't let the 'unstable' name confuse you - it's safe to use!
- Ember JS (ES6) and Handlebars code snippets - Enables Ember.js and Handlebars snippets to let you to type less and code more.
- EditorConfig for Visual Studio Code - Attempts to override user/workspace settings with settings found in .editorconfig files. The .editorconfig file helps developers define and maintain consistent coding styles between different editors and IDEs.
- Glimmer Templates Syntax - Syntax formatting for glimmer templates.
- Prettier for Handlebars - Format your handlebars files with Prettier ...that's it! Note, because this uses the currently unreleased Prettier, it may break with future changes to Prettier.
For other editors like Atom or Sublime Text, see https://guides.emberjs.com/release/code-editors/
To compile and serve on Xcode, run:
ember ios:serve
When the terminal prompt shows iOS Serve: Serving Ember app in Xcode
, Xcode will open if you have not opened it.
Then, inside the Xcode window, click the "play" arrow button in the top left. This will build the app and run it in your simulator.
To work with the sandbox API on chrome/browser (not in a simulator), you should be able to do
ember serve --environment=sandbox
Note that you will get CORs errors unless you use a browser extension to disable CORs. You can also set ssl to true in .ember-cli if you can get a self signed cert working locally. Note this will not work in phone simulators.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
npm run lint
npm run lint:fix
ember build
(development)ember build --environment production
(production)
Specify what it takes to deploy your app.