Giter Club home page Giter Club logo

tiny-bookstore's Introduction

Tiny Bookstore ๐Ÿ“”

Simple fullstack web application where you can search for and add/remove books to a fictitious bookstore.


run npm install and npm start in both /server and /client to run the website.


The main goal of this application was to practice the use of TypeScript, GraphQL and React. The server is running a GraphQL API through Apollo-Server, which our React-app on the client side then calls to fetch (or mutate) the necessary data. In this case: books and authors!

We used the npm package fakebase to simulate a DB with json-files. It is very simple to set up and allowed us to persist data for this small project, without much hassle.

We spent quite some time to figure out our how to implement our addBook mutation resolver in resolver.ts. We could not only check if the book title and author merely existed in our bookstore. We also had to make sure that the author of the book we had didn't already have a book by that name associated with it.

The frontend is a very simple React-app with one big scss-file for styling.

SERVER:

Made with:
- GraphQL
- TypeScript
- Apollo Server
- Fakebase

CLIENT:

Made with:
- Vite
- React
- TypeScript
- React Router
- Apollo Client
- GraphQL
- Sass

Made by:

Simon & Per

tiny-bookstore's People

Contributors

simon-off avatar

Watchers

 avatar

Forkers

p-ahlinder

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.