Skip to content

Conversation

@Pranav-gurung
Copy link

This PR introduces a Flask backend for the Weather Mood Journal, allowing users to log moods along with weather context and manage their entries.

Features Implemented:

Log Mood (POST /log)

Create a new mood entry with date and weather.

Optional mood; if not provided, a random mood is suggested based on the weather.

Retrieve Entries (GET /entries)

Returns all logged entries in JSON format.

Get Suggested Moods (GET /moods?weather=)

Returns a list of suggested moods corresponding to a specific weather type.

Update Entry (PUT /update/)

Update an existing entry’s date, weather, or mood using its timestamp.

Delete Entry (DELETE /delete/)

Delete an entry by timestamp.
CSV Storage & Privacy

Entries are stored in mood_journal.csv.

CSV is not committed to the repo to protect user data.

.gitignore added to prevent committing sensitive logs.

CSV is initialized with headers if it doesn’t exist.

CSV Storage

Entries are stored in mood_journal.csv.

CSV is initialized with headers if it doesn’t exist.

Mood Map Dictionary (mood_map.py)

Stores moods associated with each weather type for automatic suggestions.

@RK1905101
Copy link
Owner

hi @Pranav-gurung , can you also add readme file into it, summarizing all the functionality of your project and if possible screenshot of the same.

@Pranav-gurung
Copy link
Author

I've added the README summarizing all the project functionality. I don’t have the screenshots ready at the moment, so I’ve skipped that for now. I’ve also tested and ensured that all the APIs are working fine on Insomnia

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants