Giter Site home page Giter Site logo

cdc-assignment's Introduction

Pantry Manager

A Next.js app, where users can track the items they have in their pantry.

To run the app locally, clone the repo and install the dependencies with npm install.

The app requires some env variables to run properly, so you will need to create up a .env.local file in the root of the project. This file should contain the following values:

MONGODB_URI=*mongodb connection string*
JWT_SECRET=*random string to hash the tokens*
JWT_EXPIRATION=*token expiration period*
SENDGRID_API_KEY=*sendgrid api key sending mail*
RAPID_API_KEY=*rapid api key to use the GeoDB Cities API*
RAPID_API_HOST=*rapid api host address*

Regarding the rubrics for the React project, this app:

  • Was created with Next.js
  • Uses several different data types
  • Has dynamic routes, following Next.js built-in routing
  • Consumes the GeoDB Cities API and renders the data
  • Allows users to sort the fetched data from GeoDB API
  • Uses different input fields: text fields and drop-down lists
  • Implements error handling for all api requests
  • Uses functional components, and built-in react hooks, such as useState, useReducer and useEffect
  • Has a Nav element to aid user navigation
  • API keys are not exposed
  • Styled with tailwind.css
  • Responsive

Additionally:

  • The app is full-stack, using API Routes for the back-end
  • Stores data in MongoDB, including user data
  • Requires user authorization by JWT to retrieve/change their data
  • Tokens are parsed with a Higher Order Function, that works simillar to express middleware
  • Is deployed in vercel

cdc-assignment's People

Contributors

cdpaiva avatar

Watchers

 avatar

Forkers

jdevries3133

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.