Internet-Delivered Psychological Treatments
  • Introduction
  • Getting started
    • Tech stack
    • Want to contribute
    • Development process
    • What can you learn from this project?
  • Architecture
    • IDPT architecture
    • Database
  • Interoperability layer
    • Communication
    • Authorization server
  • Team
Powered by GitBook
On this page
  • Dashboard
  • Prerequisite

Was this helpful?

Getting started

Getting started page for beginners.

PreviousIntroductionNextTech stack

Last updated 4 years ago

Was this helpful?

Dashboard

Welcome to the IDPT wiki page. This wikipedia will get you started with the development work.

image

Prerequisite

  1. Install and configure git on your computer.

Once you have Prerequisite installed, you are ready to get started.

Step 1: Clone the repository.

git clone https://github.com/sureshHARDIYA/idpt.git

Step 2: Get inside the backend folder inside the repository.

cd idpt/backend

step 3: Make sure your mongoDB is up and running. Copy .env_example and create a new file .env. You need to add following environment variables to .env file.

MONGODB_URI=ADD_YOUR_MONGODB_LOCALHOST_URI_HERE
CLOUDINARY_URL=ASK_ME
cloud_name=ASK_ME
api_key=ASK_ME
api_secret=ASK_ME

Note MONGODB_URI is mandatory one so, if you just have the correct mongodDB URI, the application should run.

step 4: Run the backend.

yarn && yarn start

If your configuration and everything is correct, it should run the API at given port. You should be able to see the screenshot as shown below. Note the message that says MongoDB connected.

  • If you have error message and does not say mongodb connected, try to verify if mongoDB is running correctly.

step 5: Run the frontend. Navigate inside the frontend folder in a NEW terminal:

cd frontend && yarn

To run the frontend, run yarn start

yarn start

Once it compile, you should have frontend running at a given PORT, 3000 usually. By now, you should have 2 terminal, once running backend server and one running frontend.

Open the link in any browser and you should be able to see the frontend.

Congratulations! you were able to run the framework.

Happy Coding !

You need to have [](https://nodejs.org/en/) installed. Any version between 8-latest should work. If you do not have nodejs installed, follow their documentation site it get it installed.

Make sure you have or installed.

Intall .

Getting started.

Screenshot 2020-10-07 at 15 13 46
image
image
nodejs
yarn
npm
MongoDB
Follow the instruction here: