Code Monkey home page Code Monkey logo

graphiql-app's Introduction

App Requirements

https://github.com/rolling-scopes-school/tasks/blob/master/react/modules/graphiql.md

Deployment

https://nextfireteam.netlify.app/

Run / Build App

Rename .env.sample to .env.local and add firebase environment variables to enable email/password authentification:

NEXT_PUBLIC_API_KEY=
NEXT_PUBLIC_AUTH_DOMAIN=
NEXT_PUBLIC_PROJECT_ID=
NEXT_PUBLIC_STORAGE_BUCKET=
NEXT_PUBLIC_MESSAGING_SENDER_ID=
NEXT_PUBLIC_APP_ID=

Run the development server:

npm run dev

Open http://localhost:3000 with your browser to see the result.


Build a static site / single-page application (SPA) ready for deployment to ./out folder:

npm run build

Cross-Check [90/90 points]

Welcome route [10 points]

  • The welcome page contains general information about the developers, project, and course +2 pts
  • In the upper right corner there are 2 buttons: Sign In and Sign Up 2 pts
  • If login token is valid and unexpired, Sign In and Sign Up buttons changed to the "Go to Main/GraphiQL" button 2 pts
  • When the token expires - the user is redirected to the "Welcome page" automatically 3 pts
  • Pressing the Sign In / Sign up button redirects a user to the route with the Sign In / Sign up form 1 pts

Sign In / Sign Up [20 points]

  • Buttons for Sign In / Sign Up / Sign Out are everywhere where they should be 5 pts
  • Client-side validation is implemented 10 pts
  • Upon successful login, the user is redirected to the Main/GraphiQL page 3 pts
  • If the user is already logged in and tries to reach these routes, he/she is redirected to the Main/GraphiQL page 2 pts

GraphiQL route [50 points]

  • Working editor allowing to edit the query 15 pts
  • Working documentation explorer (visible only when SDL request is successful) 15 pts
  • Variables section (can be closed/opened) 5 pts
  • Headers section (can be closed/opened) 5 pts
  • Response section 10 pts

General requirements [10 points]

  • Localization (en/ru) 5 pts
  • Sticky (animated) header 5 pts

graphiql-app's People

Contributors

bulrock avatar siaw4ik avatar ilyakozak avatar

Stargazers

 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.