Giter VIP home page Giter VIP logo

directus-pokemon-manager's Introduction

DIRECTUS-POKEMON-MANAGER

Simple server application using directus as backoffice (with python realizations of client and loader standalone applications).

Server

Stores the data about the pokemons

The server application is using the sqlite3 so there is no need to install any additional DBs

Install the application:

  npm i

Copy the .env.example file (and configure the application):

  cp .env.example .env

Run the application:

  npx directus start

Credentials

There is a special custom endpoint /custom/know-more/:name which gets pockemon name fom the request, find it in the directus, go by the directus url to the pokeAPI for additional data about the pokemon and responde with it. Try it free now :D

There are 10 pokemons now in the directus, you can load more using the loader python application


Loader

Loads the data from pokeAPI (name and url only) to the directus

Copy the .env.example file (and configure the application):

  cp .env.example .env

Run the application:

  python loader/loader.py

Client

Gets the data from the directus (and prints it)

Copy the .env.example file (and configure the application):

  cp .env.example .env

Run the application:

  python client/client.py

Implemented methods:

Method Description
get_all information about all existing pokemons
get_by_id information about the current pokemon (by id)
know_more additional information about the current pokemon (by name) from pokeAPI

directus-pokemon-manager's People

Contributors

nikolasmelui avatar

Watchers

 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.