/animal-facts

A simple responsive website that shows random facts about cats, dogs and horses. Also has nice animations using anime.js.

Primary LanguageJavaScriptGNU General Public License v3.0GPL-3.0

Animal Facts

Why and what

This is a responsive website that retrieves facts about various animals from an API and displays them with smooth typing animations. This is created as an excercise in the course DA344A - Web Applications for Mobile Devices at Malmö University.

Demo page is available here: http://dvwebb.mah.se/ah7948/uppgift-vg/

GIF Demo of the website

Tools

These tools are used to accomplish this project.

  • Javascript is compiled using Webpack
  • Animations are done with animejs
  • Ajax requests are done with axios

How to run it

  1. Clone the github repository
git clone https://github.com/tillbaks/DA344A-VG-Uppgift.git
  1. (Optional) Change the CORS proxy. Since the cat-facts-api I am using in this project does not allow Cross-Origin Resource Sharing I have decided to use a proxy. Setting up your own proxy is recommended. To change the proxy change the api variable in src/CatFactsApi.js
  2. Install build requirements:
npm install
  1. Build the website:
npm run-script build
  1. Copy everything inside the dist/ directory to a webserver. Since it is a completly static website it should now be accessible and provide you with facts about animals.

License

This project is licensed under the GPLv3. See LICENCE file in the code for details.