Welcome to the Reflecta Journal App! This is a simple journaling application that provides users with daily writing prompts as well as a mood tracker to help them track their mood over time. It allows to create, edit, and delete journal entries.
- Users can create a journal entry for each day.
- Entries are limited to one per day to encourage regular journaling.
- Users can edit and delete their journal entries.
- Each day, users are presented with a random writing prompt in the form of a question to inspire their journal entry.
- Integrated into the journal entry form, users can select their mood from five predefined options when submitting their entry.
- The app generates a graphical representation of mood changes over time, allowing users to track their emotional well-being.
Before you begin, ensure you have met the following requirements:
- Node.js and npm (Node Package Manager) installed on your computer.
-
Clone the repository:
git clone https://github.com/charischaefer/journal-app.git
-
Navigate to the project directory:
cd journal-app -
Install dependencies for the server:
npm install
-
Install dependencies for the client:
cd client npm install -
Create a
.envfile in the project directory and configure your database connection settings. Update the.envfile with your database credentials. ReplaceYOUR_PASSWORDwith your actual password:DB_NAME=journal DB_PASS=YOUR_PASSWORD -
Create the MySQL database:
-
Open your MySQL client.
-
Run the following command to create the database:
CREATE DATABASE journal;
-
Migrate the database from the project directory:
npm run migrate
Now, you can start the development server and use the application.
- Run
npm startin the project directory to start the Express server on port 4000. cd clientand runnpm run devto start the client on port 5173.- You can test your client app in
http://localhost:5173. - You can test your API in
http://localhost:4000/api.
If you have any questions or encounter any issues during the installation process, please feel free to reach out for assistance. Happy journaling!
This is a student project that was created at CodeOp, a full stack development bootcamp in Barcelona.