RAFSoftLab / survey-system

The survey-system is a comprehensive platform designed to streamline the survey creation and analysis process. It serves as a versatile tool for conducting surveys, collecting user responses, offering pre-defined survey templates, recommending questions based on user input, and generating insightful reports.
MIT License
1 stars 1 forks source link

survey-system

The survey-system is a comprehensive platform designed to streamline the survey creation and analysis process. It serves as a versatile tool for conducting surveys, collecting user responses, offering pre-defined survey templates, recommending questions based on user input, and generating insightful reports.

Table of Contents

Setup Instructions For Local Development Environment

Backend side

Step 1: Clone the Repository

git clone https://github.com/RAFSoftLab/survey-system
cd survey-system

Step 2: Build Docker Images for Services

Service 1 - User Service

cd user-service
docker build -t user-service .
cd ..

Service 2 - Survey Service

cd survey-service
docker build -t survey-service .
cd ..

Service 3 - Target User Service

cd target-survey-service
docker build -t target-survey-service .
cd ..

Step 3: Start Docker Compose

docker-compose up -d

In the docker-compose.yml file, a MySQL service is defined with the latest MySQL image, configured to run on port 3306.

Each service (user-service, target-survey-service, survey-service) is linked to this MySQL service, creating separate databases.

Each service is exposed to its respective port:

Now, you have Docker containers running for your services along with MySQL.

Frontend side

Frontend is not dockerized. Therefore, to run the frontend, you'll need to have Angular and Node.js installed on your machine.

Step 4: Start Angular application

Navigate to your Angular project directory and run the following commands:

cd angular-frontend
npm install
ng serve

Access your Angular frontend at http://localhost:4200 in your web browser.

ss