BrainStation Web Development Bootcamp Capstone Project. Utilizes SASS/SCSS, React, JWT Tokens, Vite, Node, Express and a PostgreSQL Database. Demo is deployed to a Google Cloud VM running Ubuntu Server.
Peace of Mind is an application meant to assist in the day-to-day self-care and mental health of the user by providing an all-in-one solution for journaling and daily gratitude.
- Allows users to login and make journal entries, and keep track of their daily gratitudes.
- Retrieves a random inspirational quote when you log in.
Once you have cloned this repository to your computer, this application has the following prerequisites:
- PostgreSQL Database, with login credentials
- API Ninja Free API Key API Ninjas
-
Copy /server/.env.example to /server/.env and populate with PostgreSQL credentials.
-
To generate a JWT token, copy/paste the following command into your terminal and add the string to the JWT_SECRET in the /server/.env file
node -e "console.log(require('crypto').randomBytes(256).toString('base64'));"
-
Sign up for a free API key at API Ninjas and paste it between the quotes in API_KEY='' in your /server/env file.
-
Install backend packages
npm i
- Run inital database migration script (Creates tables and necessary columns)
npm run migrate
- Run the following command in your terminal to start the backend server.
npm run dev
- In another terminal, cd into the 'client' directory and install the frontend packages.
npm i
- Run the client development server.
npm run dev
- (Optional) To create a production build of the client files, run:
npm run build