//include this to run nodemon in package.json inside scripts indside frontend app.js directory
======= This website works on the microservice architecture all the important links are given below:
VISIT THE WEBSITE : https://atithidev-main-v1-0-0.onrender.com
Sentiment analysis microservice link :
https://sentimentapp-v1-0-0.onrender.com
Express Api Microservice link :
https://db-api-microservice-v1-0-0.onrender.com
The video of website in action is available on the link: https://drive.google.com/file/d/1ZWJVsZtbd15ho0pAMKMBn-RrFigO4gkS/view?usp=drive_link
SOME BASIC INFO ABOUT WEBSITE:-
-This website is made using the microservice concept. Here we have used a Sentiment analyzer to analyze the emotions of the customers in real time.
-IT Uses an express-based API that stores and fetches from the MongoDB database. We have populated some initial data in the databases.
-Also, SQLite is used for user management and relational database models. and a proxy is also used for communication between different APIs
HOW TO RUN THE WEBSITE ON THE LOCAL HOST ? -Step 1: Clone the repository run the Django server go to the server directory and write the below commands
pip install virtualenv
virtualenv djangoenv
source djangoenv/bin/activate
-Step2:From server directory install the requirements needed for the website
python -m pip install -U -r requirements.txt
python manage.py makemigrations
python manage.py migrate --run-syncdb
python manage.py runserver
-Step3:create the production ready build for the application by below commands
Go to server/frontend
npm install
npm run build
-Step4:Run the docker desktop
-Step5:for running the backend Express Api service go the database directory then
docker build . -t nodeapp
docker-compose up
-Step6:for running the sentiment analyzer microservice go to server/djangoapp/microservices and create and run docker image
docker build . -t sentimentapp
docker-compose up
add the url of the database to .env(environment variables) file in the server/djangoapp if there is no .env there then create one and add below code to it
backend_url=' https://db-api-microservice-v1-0-0.onrender.com'
sentiment_analyzer_url='https://sentimentapp-v1-0-0.onrender.com/'
Go to settings.py and add the onrender.com to csrf trusted host and allowed host.
go to the 8000 port of the local host SUCCESS! you will see the website running like for any problem contact @ inbox.ayushpandey@gmail.com or linkedIn id @linkedap
THANKS FOR READING .... :)
old one : // "scripts": { // "start": "react-scripts start", // "build": "react-scripts build", // "test": "react-scripts test", // "eject": "react-scripts eject" // },