Coder Social home page Coder Social logo

mriiad / warid-initiative Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 111.12 MB

A blood donation application for "Warid Initiative" moroccan association

TypeScript 69.87% HTML 1.12% CSS 0.75% JavaScript 28.26%
nodejs express javascript material-ui mern-stack mongodb react typescript

warid-initiative's Introduction

Warid Initiative Blood Donation Application

The Warid Initiative Blood Donation Application is a project aimed at facilitating blood donation activities for the Warid Initiative association based in Morocco. This application streamlines the process of blood donation, making it easier for donors to contribute and for the association to manage donations.

Getting Started

Prerequisites

  • Node.js and npm installed
  • MongoDB account

Installation and Setup

Database

  • Go to https://www.mongodb.com/ and create an account if you don't have one
  • Create a cluster with the name: "warid"
  • Go to "Database Access" tab and "Add new database user" (button in top right) with the "Read and write to any database" access
  • Enter a custom password or generate one automatically
  • Go back to the "Database" tab and then click "Connect"
  • Choose the desired connection and copy the connection string
  • Replace the in the string the one already submitted when creating the user
  • Connect to the database

Node server

  • Go to "warid-app\config.json" and replace the password in the dbConfig with the same one used to connect to the database
  • Go to the app's root "warid-app"
  • Run npm install
  • Run npm start
  • If everything above was done as mentioned, you must see the following message in the logs: "Connected successfully to MongoDB server"

API Testing

In order to the the routes you can already use POSTMAN to make API calls. API automated tests will be created later, but as of now, our API can be tests using a REST caller.

Here are some functionalities to test (please replace the port by the one mentioned in the config.json, by default it's 3000):

{
    "username": "username",
    "email": "[email protected]",
    "password": "password",
    "phoneNumber": "0000000000",
}

Contributing

We welcome contributions to improve and enhance the application. Please feel free to open issues for bugs, enhancements, or feature requests. Stay tuned for issues created by the maintainers for specific tasks and improvements.

Note

Ensure that config.json is ignored in your Git repository to protect sensitive information. Use the following commands as needed:

To ignore changes: git update-index --assume-unchanged ./config.json To track changes: git update-index --no-assume-unchanged ./config.json

Contact

For any inquiries or issues, please open an issue on the GitHub repository.

Enjoy contributing to the Warid Initiative Blood Donation Application!

Please make sure to replace in the API call example with the actual port number specified in your config.json file. Additionally, ensure that all the information is accurate and relevant to your project.

Enjoy!

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.