My take on the pokédex from the Pokémon® series written in Elm. It can be viewed at https://cofad.github.io/pokedex/.
- Project Goals
- Prerequisites
- Running the Application
- Building the Application
- Deploying to Github Pages
- Contributing
- Credits
- License
-
Learn the basics of the Elm language by creating an app that retrieves and displays data from a REST API.
-
Create an SVG using Figma.
The Elm compiler is required to build and run this application. It can obtained and installed using the directions from the Elm website.
The create-elm-app utility is required to build and run this project. It can be otained and installed using NPM.
npm install create-elm-app -g
-
Install node modules.
npm install
-
Run watch css to convert .scss files to .css files. This should continue running througout development in order for the CSS to be updated.
npm run watch-css
-
Start the dev server and open your browser to localhost:3000 (it should open automatically).
npm run start
-
Run the NPM build script.
npm run build
-
The resulting ditributable files in the "build" directory can be uploaded to any server.
-
Run the NPM deploy script to build and deploy the application to Github Pages. The site can be viewed at https://cofad.github.io/pokedex/
npm run deploy
This project utilizes the conventional commits standard V1.0.0 with inspiration from the Angular commit guidelines.
The commit type must be one of the following:
- build: Changes that affect the build system or external dependecies
- docs: Documentation only changes
- feat: New feature
- fix: A bug fix
- perf: A code change that improves performance
- refactor: A code change that neither fixes a bug nor adds a feature
- style: Changes that do not affect the meaning of the code
- revert: For reverting a commit
- test: Adding missing tests or correcting existing tests
If the commit reverts a previous commit, it should begin with "revert:" , followed by a space and the header of the reverted commit. In the body, it should say, "This reverts commit <hash>.", where "<hash>" is the SHA of the commit being reverted.
The subject contains a succinct description of the change:
- use the imperative, present tense: "change" not "changed" nor "changes"
- don't capitalize the first letter
- include a space after the ":"
- no dot (.) at the end
Just as in the subject, use the imperative, present tense: "change" not "changed" nor "changes". The body should include the motivation for the change and contrast this with previous behavior.
The footer should contain any information about Breaking Changes and is also the place to reference GitHub issues that this commit closes.
Breaking Changes should start with the word BREAKING CHANGE: with a space or two newlines. The rest of the commit message is then used for this.
The pokemon data is retrieved from PokéAPI.
This project is licensed under the MIT License.