'fixed login'
2 files changed, +10 -4
+3-2Client/src/constant.js
| @@ -1,3 +1,4 @@ | ||
| 1 | 1 | export const constant = { |
| 2 | - baseUrl: process.env.REACT_APP_BASE_URL | |
| 3 | -} | |
| 2 | + // baseUrl: process.env.REACT_APP_BASE_URL | |
| 3 | + baseUrl: "http://localhost:5001/", // Assuming we are using localhost. This should be in .env file but I want to show the problem | |
| 4 | +}; |
+7-2README.md
| @@ -10,8 +10,13 @@ | ||
| 10 | 10 | There is no need to change or add login function. |
| 11 | 11 | Interpret the code structure and set the correct environment by the experience of building projects. <br/> |
| 12 | 12 | Here is a login information. <br/> |
| 13 | - ✓ email: admin@gmail.com ✓ password: admin123 | |
| 13 | + ✓ email: admin@gmail.com ✓ password: admin123 | |
| 14 | 14 | |
| 15 | 15 | - Implement Restful API of "Meeting" in the both of server and client sides (40min)<br/> |
| 16 | 16 | Focus Code Style and Code Optimization. <br/> |
| 17 | - Reference other functions. | |
| 17 | + Reference other functions. | |
| 18 | + | |
| 19 | +## Solution | |
| 20 | + | |
| 21 | +- I set the constant baseUrl in the code for demonstration purpose. It should be set in the environment. | |
| 22 | +- |