The app targets node 18.7.0
link to website can be found here: https://otu-heart.netlify.app/
To use the app, you would need mongodb, nodejs and npm installed.\
Install mongodb on your machine.
Refer to the www.mongodb.com for instructions on installation for your operation system. Afterwards, start the mongod service in your cmd.
Alternatively, you can set up Docker for MongoDB. If docker is not installed in your machine, follow the guide here docker guide.
Run the command:
docker-compose up -e DB_NAME=<name-of-db-as-set-in-env-file>Substitute 'name-of-db-as-set-in-env-file' for the name of your database which must be the same name as that in your env file. Access the mongodb database
Install nodejs from nodejs.org. Likewise, follow the instructions for your operating system.
windows
Install using the link above and follow the instructions.
macOS
Install nodejs and npm using Homebrew. Open the terminal and run;
brew install nodeLinux
Use apt to install nodejs and npm. In the terminal run;
sudo apt update
sudo apt install nodejs npm- Clone the Repository
git clone https://github.com/Lonercode/self-help-journal.git
cd self-help-journal- Backend Setup
cd Backend
npm install- Frontend Setup
cd ../Frontend
npm install- Environment variables
Create a .env file using the .env.example file as a guide. Create your PORT and DB_URI env variables depending on your setup.
- Start the Application
Start both backend and frontend servers. In each run:
npm run dev