Sign up at News API, copy your API key.
Create a .env
file in the root directory and past your API key as NA_KEY=<YOUR_API_KEY>
You will need the following things properly installed on your computer.
- Git
- Node.js (with npm)
- Ember CLI
- Google Chrome
- Firebase
git clone <repository-url>
this repositorycd client
npm install
ember serve
- Visit your app at http://localhost:4200.
- Visit your tests at http://localhost:4200/tests.
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
npm run lint:hbs
npm run lint:js
npm run lint:js -- --fix
ember build
(development)ember build --environment production
(production)
$ npm install -g firebase-tools
$ ember build --prod
$ firebase login
$ firebase init
What Firebase CLI features do you want to setup for this folder? ==> Hosting
What Firebase project do you want to associate as default? ==> Select your project.
What file should be used for Database Rules? ==> Just accept the database.rules.json with hitting Return/Enter.
What do you want to use as your public directory? ==> Type: dist, because we would like to publish the content from our dist folder.
Configure as a single-page app (rewrite all urls to /index.html)? ==> Answer: YES (Please note, the default answer would be N, so you have to type YES.)
File dist/index.html already exists. Overwrite? ==> NO!!! Accept the default NO.
$ firebase deploy