Giter VIP home page Giter VIP logo

microclub-usthb / zitcode19 Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 7.0 1.08 MB

COVID-19 prevention & safety dedicated mobile app by Micro Club members & instigated by MI Agency. This projects is focused on the COVID-19 breakout on national level (Algeria).

JavaScript 98.48% Shell 1.52%
covid-19 health crisis-management open-source open-data mobile android ios react-native hacktoberfest

zitcode19's People

Contributors

dependabot[bot] avatar imenebak avatar indigowizard avatar khelifasaifeddine avatar xenomshox avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

zitcode19's Issues

Sign up / Sign in fetching

Hi there, we need the log in / sign up form to work, we're a bit late, so hani is done with the forms, what remains now is the functions that will fetch the user data.
to sign up a user, he need to put these infos, (every infos i required):

  • firstName: String.
  • lastName: String.
  • sex: String (its gonna be a drop down, or some radio buttons to check).
  • date_of_birth: String (basic date input, but the format has to be years-months-days).
  • location: String (where he lives).
  • phone: String.
  • password: String.
  • covid_19_test: Boolean (if the dude is tested positive to covid19).

to sign in a user, he need to put these infos, (every infos i required):

  • phone: String.
  • password: String.

Note: those are the name of the properties you're gonna use in the ... i dunno data {}, it has to follow these nominations.

So basicly this is what has to be done:

  • Create some function that will fetch the url: /api/auth/signup - POST, to create a user
  • Create some function that will fetch the url: /api/auth/signin - POST, to get a user

the Result of both these requests if everything is correct, is going to be a json object containing all his infos beside his phone and password.

User Model

  • Creating the Schema
  • Adding a pre save function (it's gonna hash the password then save it in the DB)
  • Added a method to compare two passwords (normal pass with the hashed one stored in the Db)

Updating project details

Project info need more details:

  • Project presentation and pitch
  • Contribution rules
  • App's prototype GIFs
  • App features ( needs details on what's to be built)
  • Tech used
  • Contact

  • moving initial readme info to back-end as intruction

PROBLEM 2

When we notify that a user may be affected, it's a server ==> phone, so we might need to use a socket

Create the pharmacy model

  • Create the pharmacy Schema
  • Add an array of pharmacies into the zone schema
  • Add a pre hook on remove of a pharmacy document, so it removes it's id in the corrsponded zone
  • Adding the "Create", "get one", "get all" and "delete" pharmacy
  • adding the route for these functions

Create the Zone model

Creating Zones functionalities:

  • Create Zone Model
  • Create a Zone
  • Remove Zone
  • Get a Zone
  • Get all Zones
  • add middlewares

Patchwork for the current state of the project

The different contributor's work was dispatched to multiple apps

  • summing up the dispatched contributors work in one app with minors fixes and changes
  • deploy to server to heroku
  • testing the signup requests (passing)

Add an auth authorization for admin only

  • add role to user schema (admin / normal user)
  • modify the sign up / sign in returned tokens such as they also include a Role property
  • create a middleware for admin authorization

PROBLEM 1

We need to define how are going to save the user location

UI/UX

This issue is related to all UI/UX design and user interaction optimization matters.

  • Build a Prototype design

Create the Medical_Establishment Model

  • Create the Model
  • add the pre remove hook on the Schema
  • add the "create", "get one", "get all", "delete" Medical establishment functions
  • add the routes with these functions

Error Handler

  • Create a more readable error handler (it returs erros in json format)

User interaction

User interaction:

  • COVID-19 advice for the users & protective measures.

User interaction

User interface:

  • //Auth?
  • //Different Interact (details?)
  • add more details on tasks/intercations to be built.

Meeting

Create a Meeting Model:

  • Create the Meeting Schema
  • Adding the pre remove function

Create a route to:

  • Create a meeting
  • Get single meeting
  • Get multiple meetings

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.