Giter Club home page Giter Club logo

-my-library-frontend's Introduction

Project Title

My Library Frontend

Table of Contents:

Technologies

Technologies used are:

  1. Next js - react js service side framework. More info: [next js](https://nextjs.org/docs/getting-started)
  2. Material ui - component library inspired by google. More info: [material-ui](https://mui.com/material-ui/getting-started/installation/)
  3. Typescript - superset of javascript that provides types when writing javascript code. More info: [typescript](https://www.typescriptlang.org/docs/handbook/typescript-in-5-minutes.html)
  4. GraphQl code generator - graphql code generator that syncs with backend graphql endpoint and generates schemas for frontend use. More info: [codegen](https://www.graphql-code-generator.com/docs/getting-started)

Setup

  • Download or clone the repository
  • Run yarn install

Running the application

  • Go to the root directory of the application
  • Create a .env file.
  • Copy the contents of env.sample file
  • Change NEXT_PUBLIC_GRAPHQL_ENDPOINT value to point to local instance of the backend server eg: NEXT_PUBLIC_GRAPHQL_ENDPOINT=http://localhost:3000/graphql/
  • Run yarn dev and navigate to http://localhost:3000 to view the app

Generating schemas

  • Go to the root directory of the application,
  • Open the graphql folder. You will see two files:
    • mutations - where mutation queries are contained.
    • queries - where queries are contained.
  • After adding a query or a mutation in either of the folders. Navigate to the root directory and run yarn codegen

-my-library-frontend's People

Contributors

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