Giter Club home page Giter Club logo

atelier_tenis's Introduction

ATELIER TENIS API (Mustafa Jaxateh) My linkedIn

clic to see the app deployed on Heroku

Requirements

For development, you will need MongoDB, Node.js, and NPM on your environement.


Node

  • Node installation on Windows

    Just go on official Node.js website and download the installer. Also, be sure to have git available in your PATH, npm might need it (You can find git here).

  • Node installation on Ubuntu

    You can install nodejs and npm easily with apt install, just run the following commands.

    $ sudo apt install nodejs
    $ sudo apt install npm
    
  • Other Operating Systems

    You can find more information about the installation on the official Node.js website and the official NPM website.

If the installation was successful, you should be able to run the following command.

$ node --version
v16.13.1

$ npm --version
8.3.0

If you need to update npm, you can make it using npm! Cool right? After running the following command, just open again the command line and be happy.

$ npm install npm -g

NPM

Select the folder and run the below commands

  1. $ git clone https://github.com/moustaphadiakhate/atelier_tenis.git
  2. $ cd atelier_tenis
  3. Create a copy of .env.template and rename it .env.
  4. Remove the # from every line.
  5. $ npm run keygen to generate api key if need
  6. $ npm run seed put the data from /data/dataset.json to atelier_tenis mongoDB database

To Run the project

  1. $ npm start
  2. Go to localhost:3000 in a browser * Normal output looks like this: {"status":200,"result":"atelier_tenis api server.. nothing to see here"}

Scripts

  • keygen.js - Gives an api key to be used by ClientApi for next communications with atelier_tenis API in secure mode.
usage: npm run keygen
  • databaeSeed.js - Put the data from /data/dataset.json to atelier_tenis mongoDB database
usage: npm run seed

All Api endpoints

Name: get_player


Method : GET (obtenir les information d'un joueur specifique)
URL : http://localhost:3000/v0/players/get_player?id=52
Request : {}

Name: get_players


Method : GET (obtenir les joueurs par ordre de leur rang)
URL :http://localhost:3000/v0/players/get_players
Request : {}

Name: get_fav_contry


Method : GET (obtenir lae pays favori en termes de ratio)
URL :http://localhost:3000/v0/players/get_fav_contry
Request : {}

Name: get_player_imc_moyen


Method : GET (obtenir le IMC moyen des joueurs)
URL :http://localhost:3000/v0/players/get_player_imc_moyen
Request : {}

Name: get_heigth_median


Method : GET (obtenir la mediade des tailles)
URL :http://localhost:3000/v0/players/get_heigth_median
Request : {}

atelier_tenis's People

Contributors

moustaphadiakhate 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.