Giter Club home page Giter Club logo

microsoft-mentalhealthplatform's Introduction

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

Project Setup

To set up and run the application, please follow the procedures outlined in the following subsections:

Setting up the local project

  1. Clone the repository to your local machine:

    git clone https://github.com/Microsoft/MentalHealthPlatform.git
    
  2. Download and install Node.js onto your development machine from https://nodejs.org/.

  3. Check whether the installation of Node was successful by running the following command; a version number should be printed:

    node -v
    
  4. Download and install Yarn on your development machine from https://yarnpkg.com/lang/en/docs/install/.

  5. Similar to that of the installation of Node.js, check whether the installation of Yarn was successful by running the following command; a version number should be printed:

    yarn -v
    

Setting up the database

  1. Download and install MongoDB from the MongoDB website:

    https://docs.mongodb.com/manual/installation/

  2. If using a Windows machine, one may need to add mongo to the environment variables. The instructions regarding the addition of environment variables can be found in the Microsoft Docs article for installing and configuring MongoDB:

    https://docs.microsoft.com/en-us/azure/virtual-machines/windows/install-mongodb

  3. Create a directory to store the data.

    mkdir <path>
    
  4. Set the path for storing the data:

    mongod --dbpath /data/<path>
    
  5. Run the service using the following command:

    brew services start [email protected]
    
  6. After installing MongoDB, launch the MongoDB terminal by using the following command:

    mongo
    
  7. To add sample data, enter the commands listed in the "docs/database_ commands.txt" file of this repository

Setting up the server

  1. In the cloned project, navigate to the server directory:

    cd server
    
  2. Install the dependencies:

    yarn
    
  3. Run the server:

    yarn start
    

    The console should then print a statement about the server running on a certain port:

    Server is running on Port 3000...

Setting up the client

  1. In the cloned project, navigate to the client directory:

    cd client
    
  2. Install all dependencies:

    yarn
    

Running the project

  1. Run the client:

    yarn start
    

    The console should then print a statement with a URL in which the application is running.

    For example:

    Project is running at http://localhost:8080/

  2. Launch the application in a web browser by navigating to the URL printed by the console

Pages

Dashboard (Home) Page

Topics page

Topics Page

Topics page

Forum Page

Forum page

Chat Page

Chat page

Contacts Page

Contacts page

Events Page

Events page

News Page

Events page

Therapists Page

Events page

Crisis Page

Crisis page

microsoft-mentalhealthplatform's People

Contributors

eddylu94 avatar dependabot[bot] avatar 2lambda123 avatar ms-aldo avatar svirga avatar adsingh avatar aileen15 avatar avivaschmitz avatar khushboochandra07 avatar microsoft-github-policy-service[bot] avatar imgbotapp avatar jacklidev avatar penify-dev[bot] avatar

Watchers

 avatar

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.