Mood Tracker is a tiny app to record your mood.
You can track your mood by mood chart.
- Clone this repository and install npm packages.
git clone https://github.com/azuki-penguin/mood-tracker
cd mood-tracker
yarn
- Set environment variables.
cp .env.example .env
vim .env
- Build the Docker container of MongoDB.
docker compose build
# To invoke Docker container
docker compose up -d
This app use some external services.
- Auth0
- To use passwordless authentication
- OpenWeatehrMap
- To fetch current weather of the user location
Variable Name | Description |
---|---|
AUTH0_DOMAIN |
Your Auth0 application domain |
AUTH0_CLIENT_ID |
Your Auth0 application client ID |
AUTH0_CLIENT_SECRET |
Your Auth0 application client secret |
OPEN_WEATHER_API_KEY |
API key of your OpenWeather API |
Run the following command to invoke development server.
docker compose up -d
npm run dev
# or start the server and open the app in a new browser tab
npm run dev -- --open
To create a production version of your app, run the following command.
npm run build
You can preview the production build with npm run preview
.