Giter Club home page Giter Club logo

dnd-creatures's Introduction

DND Creatures

A DND 5e app that randomly chooses a DND creature at the click of a button. Uses the https://www.dnd5eapi.co API. ​

As a Dungeon Master or a Druid, there are many creatures to choose from. But when time is running out, the possibilities seem endless. ​

You can try out the demo here: Link

Technologies Used

  • Sveltekit - For server side rendering, and minimal build sizes.
  • Tailwind CSS - For its design system

What I Learned

  • Using async/await with the Fetch API
  • Using the on: directive for event listening in Svelte
  • How important adding the site's title and meta description is for SEO
  • Randomizing the results before it is shown
  • That there are 332 monsters in DND 5e and possibly even more

What I Also Wanted To Do

To make it more useful, I would want the app to show additional info of the creatures. This would require another fetch to be made. While I've done those in the past (complex api repos), this would be my first time with the await operator so I wasn't sure if that would add extra complexity.

I also wanted to add unit tests. For an app like this, other than ensuring that the API data renders, the rest is straightforward. Being new to the Svelte ecosystem and not fully understanding how Jest works in Svelte, I opted to not dig deeper.

dnd-creatures's People

Contributors

nktruong avatar

Watchers

 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.