Skip to content

In this COVID world that we live in, it is important that people can easily access medical assistance if need be. With that in mind, the goal of this challenge is to build an application that can locate all the hospitals within a given area.

License

Notifications You must be signed in to change notification settings

abdulsamadola/hospital-finder

Repository files navigation

Hospital Finder

GitHub issues GitHub forks GitHub stars GitHub license

Table of Contents

About The Project

Hospital Finder is an online web app that helps locate all the hospitals within a given area.

Build with

Getting Started

This is an list of needed instructions to set up your project locally, to get a local copy up and running follow these instructions.

Installation

  1. Clone the repository
$ git clone https://github.com/abdulsamadola/enye-challenge-1.git
  1. Navigate to repository directory
$ cd enye-challenge-1
  1. Install dependencies
$ yarn install

Running

  1. Running on development mode
$ yarn run server
$ yarn run client
  1. Build for production
$ yarn run build

Screenshots

image


image


image


image


image

File Structure

|-- Hospital Finder
    |-- .DS_Store
    |-- .env
    |-- .gitignore
    |-- LICENSE
    |-- README.md
    |-- package.json
    |-- server.js
    |-- tsconfig.json
    |-- yarn-error.log
    |-- yarn.lock
    |-- build
    |   |-- favicon.ico
    |   |-- logo192.png
    |   |-- logo512.png
    |   |-- manifest.json
    |   |-- robots.txt
    |-- public
    |   |-- favicon.ico
    |   |-- index.html
    |   |-- logo192.png
    |   |-- logo512.png
    |   |-- manifest.json
    |   |-- robots.txt
    |-- screenshots
    |   |-- 1.png
    |   |-- 2.png
    |   |-- 3.png
    |   |-- 4.png
    |   |-- 5.png
    |-- server
    |   |-- schema
    |       |-- index.js
    |-- src
        |-- .DS_Store
        |-- App.scss
        |-- App.tsx
        |-- index.css
        |-- index.tsx
        |-- react-app-env.d.ts
        |-- setupTests.ts
        |-- Services
        |   |-- dataService.ts
        |   |-- firebase.ts
        |-- __tests__
        |   |-- Footer.test.tsx
        |   |-- Header.test.tsx
        |-- common
        |   |-- index.d.ts
        |-- components
        |   |-- CardTemplate
        |   |   |-- CardTemplate.scss
        |   |   |-- CardTemplate.tsx
        |   |-- Footer
        |   |   |-- Footer.tsx
        |   |-- Header
        |   |   |-- Header.tsx
        |   |-- Home
        |   |   |-- Home.scss
        |   |   |-- Home.tsx
        |   |-- LandingPage
        |   |   |-- LandingPage.tsx
        |   |-- ShowHospitals
        |   |   |-- ShowHospitals.scss
        |   |   |-- ShowHospitals.tsx
        |   |-- SignIn
        |   |   |-- SignIn.tsx
        |   |-- SignUp
        |       |-- SignUp.tsx
        |-- hooks
        |   |-- index.ts
        |   |-- useDebounce.ts
        |-- queries
        |   |-- index.ts
        |-- routes
        |   |-- Auth.tsx
        |   |-- PrivateRoute.tsx
        |   |-- index.tsx
        |-- styles
        |   |-- index.ts
        |-- testUtils
        |   |-- index.ts
        |-- utils
            |-- index.ts

Unit testing

Each component in this project has its own unit test file separately inside __tests__ directory eg. Header.test.tsx

Running Unit tests

Run the following command.

yarn run test

License

This software is licensed under MIT License, See License for more information ©Abdulsamad Suleiman.

About

In this COVID world that we live in, it is important that people can easily access medical assistance if need be. With that in mind, the goal of this challenge is to build an application that can locate all the hospitals within a given area.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published