Giter VIP home page Giter VIP logo

graph_react_calendar's Introduction

giskard_calendar

A calendar with reactJs and GraphQl

DEV Environment DOCKER

#build
docker-compose build
#run
docker-compose up -d
#to show logs
docker-compose logs -f

Links

#Sandbox Graph API

http://212.47.245.111:7010/

#Front End

http://212.47.245.111:3000/

#Database

http://212.47.245.111:7011/

Username: sf_user
Password: UzTQ4356NffpN3i9

NB: Still under development.

work done for now:

  • see slots available for reservations
  • provide a start, end, title and email for a new reservation and save it.

Remaining work:

  • add/delete availability slots
  • delete reservation

Repo API

https://github.com/ytimoumi/giskard_api All work done in the backend part, and all APIs are tested with Postman.

#createReservation
curl --location --request POST 'http://212.47.245.111:7010/query' \
--header 'Referer: http://test.com' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation ($idAvailability:Int!,$input:ToReserve!) {\r\n  createReservation(idAvailability:$idAvailability, input:$input) {\r\n      code\r\n      message\r\n  }  \r\n}","variables":{"idAvailability":7,"input":{"start":"2022-02-10T00:00:00+01:00","end":"2022-02-09T08:30:30Z","title":"Entretien","email":"[email protected]"}}}'
#createAvailability
curl --location --request POST 'http://212.47.245.111:7010/query' \
--header 'Referer: http://test.com' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation ($input:Availability!) {\r\n  createAvailability(input:$input) {\r\n      code\r\n      message\r\n  }  \r\n}","variables":{"input":{"start":"2022-02-09T12:04:30Z","end":"2022-01-02T09:04:30Z"}}}'
#getAvailabilities
curl --location --request POST 'http://212.47.245.111:7010/query' \
--header 'Referer: http://test.com' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"query  {\r\n  getCalendar {\r\n      id\r\n      start\r\n      end\r\n  }  \r\n}","variables":{}}'
#deleteReservation
curl --location --request POST 'http://212.47.245.111:7010/query' \
--header 'Referer: http://test.com' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation ($id: Int!, $email: String!) {\r\n  deleteReservation(id:$id, email:$email) {\r\n      code\r\n      message\r\n  }  \r\n}","variables":{"id":5,"email":"[email protected]"}}'
#deleteAvailability
curl --location --request POST 'http://212.47.245.111:7010/query' \
--header 'Referer: http://test.com' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"mutation ($id: Int!) {\r\n  deleteAvailability(id:$id) {\r\n      code\r\n      message\r\n  }  \r\n}","variables":{"id":5}}'

graph_react_calendar's People

Contributors

ytimoumi avatar

Stargazers

Yassine Timoumi avatar  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.