You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+
# Quick Start
4
4
5
-
## Available Scripts
5
+
1. Navigate to the `Frontend` Directory in Terminal or Powershell
6
6
7
-
In the project directory, you can run:
7
+
2. Build the Container.
8
8
9
-
### `npm start`
9
+
Command:
10
10
11
-
Runs the app in the development mode.\
12
-
Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
11
+
```
12
+
docker-compose build frontend
13
+
```
13
14
14
-
The page will reload when you make changes.\
15
-
You may also see any lint errors in the console.
15
+
3. Start the Container.
16
16
17
-
### `npm test`
17
+
Command:
18
18
19
-
Launches the test runner in the interactive watch mode.\
20
-
See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
19
+
```
20
+
docker-compose up frontend
21
+
```
21
22
22
-
### `npm run build`
23
-
24
-
Builds the app for production to the `build` folder.\
25
-
It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
-
The build is minified and the filenames include the hashes.\
28
-
Your app is ready to be deployed!
29
-
30
-
See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
-
### `npm run eject`
33
-
34
-
**Note: this is a one-way operation. Once you `eject`, you can't go back!**
35
-
36
-
If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
-
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39
-
40
-
You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41
-
42
-
## Learn More
43
-
44
-
You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
-
To learn React, check out the [React documentation](https://reactjs.org/).
47
-
48
-
### Code Splitting
49
-
50
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51
-
52
-
### Analyzing the Bundle Size
53
-
54
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55
-
56
-
### Making a Progressive Web App
57
-
58
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59
-
60
-
### Advanced Configuration
61
-
62
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63
-
64
-
### Deployment
65
-
66
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67
-
68
-
### `npm run build` fails to minify
69
-
70
-
This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
23
+
4. Using your preferred Browser, you can go to the following URL `http://localhost:3001/` to see the frontend running.
docker-compose up history-service history-service-database
21
21
```
22
22
23
-
4. Using Postman or a likewise app, you can connect to `localhost:3006` to send http (REST) queries.
23
+
4. Using Postman or a likewise app, you can connect to `http://localhost:3006/history/` to send http (REST) queries.
24
24
25
25
# Starting Containers Individually
26
26
@@ -34,7 +34,7 @@ docker-compose up
34
34
35
35
Set up a Docker network using the following command, and ensure to use the same network name when starting the various services and databases later. (This step is important if you dont want to run via `docker-compose up` command)
36
36
37
-
Command:
37
+
Using Terminal, Run the following Command:
38
38
39
39
```
40
40
docker network create -d bridge peer-prep-network
@@ -44,6 +44,8 @@ This command is to be run only for the initial set up, and once the network is s
44
44
45
45
## mySQL Container
46
46
47
+
Navigate into `HistoryService` Directory
48
+
47
49
First and foremost change the `databaseUrl` in the `Config/config.js` file to `127.0.0.1`
48
50
49
51
Start by running this container first, else History Service will not be able to connect to Database.
@@ -64,7 +66,7 @@ docker exec -it history-service-database sh
64
66
65
67
The above will open a terminal window for the mySql Docker Container, where `mysql` can be used.
66
68
67
-
## History Service Server
69
+
## History Service Microservice
68
70
69
71
1. Navigate to the `HistoryService` Directory in Terminal or Powershell
0 commit comments