Skip to content

Commit

Permalink
readme update
Browse files Browse the repository at this point in the history
  • Loading branch information
nadinedelia committed Oct 24, 2023
1 parent 3b9833a commit fd7bd7b
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,15 @@ The Activity Tracking functionality uses the MERN stack (MongoDB, Express.js, Re
1. Click on "Code"
2. Switch to the "Codespaces" tab
3. Create new Codespace from main

![Screenshot](screenshots/codespaces.png)

4. Open Codespace in VS code for best experience:
![Screenshot](screenshots/codespaces2.png)

Walktrough:

https://docs.github.com/en/codespaces/developing-in-a-codespace/using-github-codespaces-in-visual-studio-code


#### Check needed packages are installed:
```sh
Expand Down
2 changes: 1 addition & 1 deletion authservice/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
rootProject.name = "demo"
rootProject.name = "mla"
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ protected void configure(HttpSecurity http) throws Exception {
.antMatchers("/api/auth/signup", "/api/auth/login").permitAll() // Public access to signup and login
.anyRequest().authenticated() // All other requests need authentication
.and()
.httpBasic(); // Enable basic authentication
.httpBasic();
}

@Bean
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/journal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const Journal = ({ currentUser }) => {
const url = `http://localhost:5050/api/stats/weekly/?user=${currentUser}&start=${moment(startDate).format('YYYY-MM-DD')}&end=${moment(endDate).format('YYYY-MM-DD')}`;
const response = await axios.get(url);
console.log('API Response:', response.data);
setExercises(response.data.stats); // Updated this line
setExercises(response.data.stats);
} catch (error) {
console.error('Failed to fetch exercises', error);
}
Expand Down
Binary file added screenshots/codespaces2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit fd7bd7b

Please sign in to comment.