This repository connects researchhub-backend and researchhub-web into one Docker-Compose to allow easy testing and development of Researchhub.
1.) Install Docker & Docker Compose.
# Clone and enter this repository
git clone https://github.com/ResearchHub/researchhub-dev.git
cd researchhub-dev
# Clone frontend and backend into researchhub-dev. These are the repos you will be modifying.
git clone -b connerdev https://github.com/ResearchHub/researchhub-backend.git
git clone -b connerdev https://github.com/ResearchHub/researchhub-web.git
cp -R researchhub-backend/src/config/* researchhub-backend/src/config_local/
# Start Docker
docker-compose up -d
Add the following entries to your hosts file (/etc/hosts)
127.0.0.1 dev.researchhub.com
127.0.0.1 dev-backend.researchhub.com
Access your development ResearchHub in your browser @ https://dev.researchhub.com
The backend will be running @ https://dev-backend.researchhub.com
Tip: Modify environment variables by editing the ".env.dev" file in this repository.