Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

247 Commits
 
 
 
 
 
 

Repository files navigation

otu-heart

self-help-journal

The app targets node 18.7.0
link to website can be found here: https://otu-heart.netlify.app/

Start here

To use the app, you would need mongodb, nodejs and npm installed.\

How to set up MongoDB

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.

Alternative (Docker)

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

How to set up Nodejs

Install nodejs from nodejs.org. Likewise, follow the instructions for your operating system.

Installation of nodejs and npm on different Operating Systems

windows

Install using the link above and follow the instructions.

macOS

Install nodejs and npm using Homebrew. Open the terminal and run;

    brew install node

Linux

Use apt to install nodejs and npm. In the terminal run;

    sudo apt update
    sudo apt install nodejs npm

Steps to run project

  1. Clone the Repository
    git clone https://github.com/Lonercode/self-help-journal.git
    cd self-help-journal
  1. Backend Setup
    cd Backend
    npm install
  1. Frontend Setup
    cd ../Frontend
    npm install
  1. 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.

  1. Start the Application

Start both backend and frontend servers. In each run:

    npm run dev

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages