-
Notifications
You must be signed in to change notification settings - Fork 2
Project 1
To get started with the weather forecast app, you'll need to run the services in the following order:
- All the backend servers.
- Create pubsub topics and subscriptions using Google pubsub emulator.
- Run the frontend service.
First step is to clone this repository.
Make sure your system has the following installed:
- Python 3.7
- Java 1.8
- Nodejs
Note: Also, check that
1. Your $JAVA_HOME environment variable is set to your Java 1.8 installation.
2. Nothing is running on the following ports: 8000, 8100, 8200, 8300, 8400, 3000, 5000 and 8085.
You can check if a port is in use using the following command:
sudo netstat -anp | grep '<port>'
You will also need the Google Cloud SDK as well as the Google Pubsub emulator installed on your machine. Use the following docs to set these up:
- For Google Cloud SDK
- For Google Pubsub Emulator.
You also need to install either conda or virtualenv so that you can create and run a everything inside a virtual environment. Use the following docs to install either of these: [Note: conda is strongly recommended]
- For conda
- For virtualenv
Note: Make sure the environment that you create is named manager
and is using python 3.7.
First, make sure you are in the ScrumLords
directory. Now, we will start each service sequentially.
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intomanager
-
conda activate manager
-
pip install -r requirements-dev.txt
. This will make sure all required python packages are installed. Run this command only once. -
Now, to start the server, depending on your OS and shell type, run any one of the following commands:
zsh runserver.sh
bash runserver.sh
./runserver.sh
sudo ./runserver.sh
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intosession_manager
-
conda activate manager
-
Now, to start the server, depending on your OS and shell type, run any one of the following commands:
zsh runserver.sh
bash runserver.sh
./runserver.sh
sudo ./runserver.sh
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intoweather_data_retrieval
-
conda activate manager
-
Now, to start the server, depending on your OS and shell type, run any one of the following commands:
zsh runserver.sh
bash runserver.sh
./runserver.sh
sudo ./runserver.sh
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intomodel_execution
-
conda activate manager
-
Now, to start the server, depending on your OS and shell type, run any one of the following commands:
zsh runserver.sh
bash runserver.sh
./runserver.sh
sudo ./runserver.sh
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intopostprocessor
-
Now, to start the server, run:
./mvnw spring-boot:run
Assuming you have set up the Google Cloud SDK and Google Pubsub Emulator, follow these steps:
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intomanager
-
conda activate manager
-
gcloud beta emulators pubsub start
. This will start running theemulator
on port 8085.
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intomanager
-
conda activate manager
-
Now run any one of the following commands, again depending on your OS and shell type:
zsh pubsub_setup.sh
bash pubsub_setup.sh
./pubsub_setup.sh
sudo ./pubsub_setup.sh
-
Open a new tab in terminal in
ScrumLords
directory. -
cd
intouser_interface/client
-
npm install
. This will install all client dependencies. -
Go back to
ScrumLords
directory. -
cd
intouser_server
-
npm install
. This will install all server dependencies. -
npm run dev
. This will run both Express and React.
The web application will launch in localhost:3000/
.