Skip to content

🤠 API that retrieves random Chuck Norris jokes (back&frontend)

License

Notifications You must be signed in to change notification settings

gabirisushi/ChuckNorris-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

image image

Chuck Norris API

Version 2.0

While developing the front-end, it turned out that I needed to activate CORS into flask back-end for the front-end to work. Plus, I came across a minor bug in the back-end that caused deleted jokes to be displayed in a certain scenario. I've fixed the issues and have the updated back-end and front-end. Keep in mind that the React front-end app assumes that the Flask API is running on its default port 5000. This is the default port if you're running the Flask API as instructed the README. Otherwise, I'll need to configure the Front-end app accordingly.

Version 1.0

This API acts as a gateway towards Chuck Norris API (api.chucknorris.io), letting the user search, create, delete and update jokes from Chuck Norris jokes, that works through Postman.

image

Tech specifications

  • Python
  • Flask
  • Documentation made with Postman
  • Javascript
  • HTML / CSS

How to use?

Installation

Conda

conda create -n joke-api python=3.9

conda install -c conda-forge --file conda_requirements.txt

Pip

pip install -r pip_requirements.txt

Usage

Create database file by running 'create_database.py'

python create_database.py

To start the server

flask run

Unit tests:

pytest

API documentation

Postman documentation

About

🤠 API that retrieves random Chuck Norris jokes (back&frontend)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages