GithubHelp home page GithubHelp logo

donor-app's Introduction

Blood donor project

This is a webapp for donate blood, the main purpose of this application is design an app that I can have an registry of the people who needs blood and at the same time enhance my Javacript and React.js knowledge.

Running the project

IMPORTANT: You should have the donor API. running in you machine.

After the project is cloned, first rename the .env.example file to .env and fill it with your mongo server's configurations data.

Second, open the terminal in the project directory and write the following commands:

# installing dependencies
npm install

# Run the app
npm start

donor-app's People

Contributors

gaperaltav avatar

Stargazers

Roman avatar  avatar  avatar

Watchers

 avatar Jossy Devers avatar

donor-app's Issues

Donation Request Detail's page

Allows the user to view a Donation details, for do this is necessary to:

  • Add new page and route for the donation detail.
  • Add selected donation's fields to the store.
  • Create an action and reducer for fetch donation data.
  • Create an Axios method to call the 'donations/get/:id' API method.
  • Create the reducer for fill donationRequest object.
  • Create the action and reducer to reset donationRequest to Initial state.
  • The page filled whit donationRequest data.

Create a 404 not found Route and page.

Add a 404 not found page in the client project, with the steps below:

  • Create the not found page.
  • Add the new page in the routes file, when a route not match with none of the above.

Crete new donation.

Allows the user to create a new Donation in the app with these elements:

  • Add a new material-ui button in the bottom of the page.
  • Add the new donation to the sate.
  • Design a modal for showing up in the app.
  • when the user clicks the button a modal should open with the donation form.
  • Allows to save the donations only when the form is valid.
  • Close the modal when the donation is created.

Create donation reducer and actions in store.

Create donation reducer with initial state object, action and action creators.
The initial state of the donation should contain this structure:

bloodDonorId: null,
    bloodDoneeId: new ObjectId('5d2bc2680ef58a2f8a24d438'),
    title: 'Transfusion for an operation',
    bloodType: 'A+',
    description: 'I Will be in a operation tomorrow and I need a blood transfusion ',
    accepted: true,
    created_at: new Date(),
    updated_at: new Date(),

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.