Giter Club home page Giter Club logo

buuks-react-client's Introduction

@Ifycode/buuks-react-client


Hosted on Netlify: https://buuks.netlify.app

Screenshot 2022-03-28 at 11 55 03 PM

This is the frontend client for the buuks-express-api, built with react, typescript and tailwind css. Through the app's user interface, an (authenticated) user to interact with a database made for storing books. The app is able to do the following:

  • User signup and login (authentication)
  • Create Read Update Delete operations for books which are saved in the database
  • PDF file upload to Cloudinary

Run client app in development

The buuks client app is created with create-react-app and therefore runs at localhost port 3000. Use the command below to start the client app in development:

yarn start

Connecting to backend/database in development

Add the line below in the client app's .env file to connect to the heroku backend deployment:

REACT_APP_BASE_URL=https://buuks-express-api.herokuapp.com

Alternatively, run the backend repo locally on your computer. Then use the localhost url you supplied as the API_HOST_URL from the backend's .env file, as the value for REACT_APP_BASE_URL in the client app's .env file.

Helpful resources

buuks-react-client's People

Contributors

ifycode avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

buuks-react-client's Issues

Loader, and delete button prompt

  • Delete button should prompt the user with a popup: "Confirm your action as this action cannot be reversed"
  • Loader should also be used on the login and signup pages
  • And maybe improve loader color so that it's more visible

Suggestion by @jiobiagba

UseEffect in useAuth hook/provider

useEffect(() => { 
    // Set isloading to true

    // read token from local storage
    // if token exists, 
        // read user data from local storage
        // set the user variable
        // set isAuthenticated to true

    // if token doesn't exist, 
        // set isAuthenticated to false

    // set isLoading to false
  }, []);

One of the suggestions from @faarda

PDF link doesn't open or download on Chrome mobile phone browser

Description

On Chrome mobile browser, pdf link tries to open up a new tab but immediately closes the tab. As a result, one cannot preview or download the pdf file.
It works well in chrome browser on Mac.

Steps to reproduce

  • Use a mobile phone with chrome browser.
  • Sign up and login to created account
  • Click on the add button to create a book card
  • Click on the pdf link on the card

Expected output

One should be able to preview or download pdf on mobile phone too.

Screenshot

Screenshot_20220326-005155

Browser and phone specifications

  • Chrome mobile phone browser (add version later)
  • Nokia 2.4
  • Android 11

The link works as expected tested with Firefox mobile phone browser

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.