Skip to content

ember-learn/ember-help-wanted-server

Repository files navigation

This project uses GitHub Actions for continuous integration.

ember-help-wanted-server

This is a thin backend for ember-help-wanted. It searches for open GitHub issues in Ember.js.

How to run

  1. You will need to create a GitHub token. You can leave all checkboxes under "Select scopes" empty. We will be reading public data only.

  2. Copy .env.example as .env. Then, edit .env by adding your GitHub token to GITHUB_API_TOKEN.

  3. Run npm start.

    npm start
    
    $ node src/index.js
    fetching all issues
    listening on port 3000!
    fetching all repos
  4. To check if the server app's working, visit http://localhost:3000/github-issues?group=core. You will see an array of POJOs (GitHub issues). If you see an empty array, try refreshing the page.

Continuous integration

We use GitHub Actions to lint and test the app when a PR (pull request) is created and merged.

Run the following commands to lint and test from local machine:

npm run lint
npm test

To fix linting errors, try the following command:

npm run lint:fix

Compatibility

  • Node.js v18.9 or above