Giter Site home page Giter Site logo

physiohack's Introduction

PhysioHack

Hackathon project to create a website to find physiotherapists near you and book appointments.

The website is structured over three pages:

  • Main landing search page
  • List results page
  • Professional profile page

Code structure

Frontend

This client was bootstrapped with Create React App.

The client can be started by running

npm install (only necessary the first time)

npm start

from within the /client folder. This will run the app in the development mode.
Open http://localhost:3000 to view it in the browser.

NOTE: Inside the /src folder, you should create a .env file, containing the key for the Google API authentication ( used for the Map component). Should be something like:

REACT_APP_MAPS_API_KEY=MyGoogleApiKey123

The website is built as a single page react app. This means that when navigating through the pages, the content switch and the address update are handled by the page scripts.

The project is structured in the following way:

  • App.js: contains the general page structure and logic to switch between pages based on the web address
  • pages folder: contains the various scripts that perform the queries and display the content related to a single page
  • components folder: contains reusable components suc as the Map component
  • style folder: styling sheets
  • utils folder: contains geolocator script used for translation of street addresses to geographical coordinates and vice-versa

Backend

The server can be started by running

npm install (only necessary the first time)

npm start

from within the /server folder. You can then find a list of available calls by visiting

http://localhost:3001/api-docs/

in server/utils/requests.rest, you can find a list of example requests.

NOTE: Inside the config folder, you should create a .env file, containing the key for the MongoDB atlas authentication. Something like:

MONGODB=mongodb+srv://root:<password>@<clustername>.yaspg.mongodb.net/<database>?retryWrites=true&w=majority

physiohack's People

Contributors

fed95 avatar ruggero95 avatar marcovarrone avatar michelepapale1996 avatar giogia avatar disdj avatar

Watchers

 avatar  avatar  avatar  avatar GProbo avatar

physiohack's Issues

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.