Git Product home page Git Product logo

haskellpokedexproject's Introduction

# Pokedex Haskell Project

Pokedex website made using haskell's web framework yesod for the functional programming classes at FATEC Rubens Lara for the System's Development and Analysis' degree, consuming PokeAPI's resources. Professor Alexandre Garcia.

Pokedex

The Pokédex (ポケモン図鑑 Pokemon Zukan) is an electronic device designed to catalogue and provide information regarding the various species of Pokémon featured in the Pokémon video game, anime and manga series.

Yesod

Yesod is a Haskell web framework for productive development of type-safe, RESTful, high performance web applications.

Installation

Follow the FP Complete get started guide to get the Stack build tool on the link: https://tech.fpcomplete.com/haskell/get-started.

Clone this project.

Install the yesod command line tool:

stack install yesod-bin --install-ghc

Build libraries:

 stack build
 stack build yesod-bin

Serving

Launch devel server:

stack exec -- yesod devel

View your Yesod site at http://localhost:3000/

VSCode Shakespeare Extension

There is no Yesod or Shakespeare extension in VSCode yet which could support the hamlet file extension. Because of that, we can force vscode to read shakespeare syntax as HTML, CSS and JS files.

Step 1

Open the settings screen.

Step 2

In the Settings Screen you can see the override options of the default settings. You can apply settings changes for all of your personal projects (User Settings), for a whole Workspace (more specific) or even more fine grained to a folder. We will apply the changes to all of our projects.

We would like to make the following mapping:

Hamlet files (with the .hamlet file extension) should be syntax highlighted as HTML files Julius files (with the .julius file extension) should be syntax highlighted as JavaScript files Cassius files (with the .cassius file extension) should be syntax highlighted as CSS files

The settings are defined in JSON, a very common data structure which makes it pretty simple for any developer to adapt. Let's add the following entry:

settings.json

  "files.associations": {
        "*.hamlet": "html",
        "*.julius": "javascript",
        "*.cassius": "css",
        "*.lucius": "css",
      }

Congratulations! You managed to add Shakespeare Templates support to your VSCode installation. If you open one of the files with the mentioned file extension, your code should be syntax highlighted. (Even if hamlet structure does not require the closing tags, the syntax highlighting works surprisingly well. As well do the flow keywords.)

Credits

Special thanks to the whole PokeAPI dev team for creating such an amazing project. Full Documentation @ https://pokeapi.co/docs/v2.html

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

haskellpokedexproject's People

Contributors

brunofields avatar

Watchers

James Cloos avatar  avatar

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.