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
Copy file name to clipboardExpand all lines: README.md
+26-7Lines changed: 26 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,23 +77,42 @@ Install the following extensions(optional):
77
77
-`Prettier - Code formatter`.
78
78
- Go to user settings (`settings.json`) and enable formatting on save: `"editor.formatOnSave": true`.
79
79
80
-
## Development server
80
+
## How to run this project
81
81
82
-
Yo have 2 ways to run this project in dev mode:
82
+
You have two ways to run this project locally:
83
83
84
-
**First**:
85
-
- In your project path, open your favourite command line and run the follwing commands: `make build` then `make run` and finally `make logs`. When the project is successfully compiled you can go to `http://localhost:4200/` in your browser. Remember you must have your Docker running.
84
+
**First (Using Docker)**:
86
85
87
-
**Second**:
86
+
In your project path, open your favourite command line and run the follwing commands:
87
+
88
+
To run the project in development mode:
89
+
-`make build` to create a docker image with dependencies needed for development.
90
+
-`make run` to execute the development docker container.
91
+
-`make logs` to show logs of time-tracker-ui in real time.
92
+
-`make stop` to stop the development docker container.
93
+
94
+
To run the project in production mode (only for locally testing purposes):
95
+
-`make build_prod` to create a docker image with dependencies needed for production.
96
+
-`make run_prod` to execute the production docker container.
97
+
-`make stop_prod` to stop the production docker container.
98
+
99
+
When the project is successfully compiled you can go to `http://localhost:4200/` in your browser. *Remember you must have your Docker running for both cases.*
100
+
101
+
**Second (Without using Docker)**:
102
+
103
+
Note: If you're on windows, use bash to set up the environment.
88
104
89
-
note: If you're on windows, use para bash to set up the environment.
90
105
- Set the environment variables executing the following commands:
91
106
```bash
92
107
set -a
93
108
source .env
94
109
set +a
95
110
```
96
-
- Run `ng serve` to run the app in dev mode. After executing this command, you can navigate to `http://localhost:4200/` to see the app working. This method is usefull when you want to run a specific branch using less time but not recommended when doing QA.
111
+
112
+
- Run `ng serve` to run the app in development mode.
113
+
- Run `ng serve --prod` to run the app in production mode (pointing to the production backend).
114
+
115
+
After executing this command, you can navigate to `http://localhost:4200/` to see the app working. This method is usefull when you want to run a specific branch using less time but not recommended when doing QA.
97
116
98
117
In any case, the app will automatically reload if you change anything in the source files.
0 commit comments