Skip to content
 
 

Latest commit

 

History

41 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

Journalify

Project Overview

Journalify is a journaling application that allows users to create, edit, and manage their personal journals. It includes user authentication, admin capabilities, and various features like public and private journals.

Tech Stack

  • Frontend: React, Material-UI, Vite
  • Backend: Node.js, Express, MongoDB
  • Testing: Cypress (Frontend), Jest and Supertest (Backend)
  • Database: MongoDB
  • Authentication: JWT, Cookies
  • Styling: Material-UI (MUI)

Prerequisites

Make sure you have the following installed on your system:

  • Node.js (v16 or above)
  • npm (comes with Node.js) or Yarn
  • MongoDB (local instance or cloud database)
  • Git (optional, for cloning the repository)

Journalify: README Table of Contents Project Overview Tech Stack Prerequisites Installation Backend Setup Frontend Setup Running the Project Testing Project Structure Project Overview Journalify is a journaling application that allows users to create, edit, and manage their personal journals. It includes user authentication, admin capabilities, and various features like public and private journals.

Tech Stack Frontend: React, Material-UI, Vite Backend: Node.js, Express, MongoDB Testing: Cypress (Frontend), Jest and Supertest (Backend) Database: MongoDB Authentication: JWT, Cookies Styling: Material-UI (MUI) Prerequisites Make sure you have the following installed on your system:

Installation

Clone the repository:

git clone https://github.com/iAbhi001/JournalZ.git

Navigate to the project directory:

cd JournalZ

Backend Setup Navigate to the backend folder:

cd backend

Install dependencies:

npm install

Start the backend server:

npm start

The backend server should now be running at http://localhost:5000.

Frontend Setup

Navigate to the frontend folder:

cd frontend

Install dependencies:

npm install

Start the backend server:

npm run dev

Set up backend API URL:

cd src/api/axios.js

change the following url:

  baseURL: "http://localhost:5000/api", // Replace with your backend's base URL

Running the Project

Start the backend server:

cd backend
npm start

Start the frontend server:

cd frontend
npm run dev

Open http://localhost:5173 in your browser to access the application.

Testing

Frontend Testing (Cypress)

Run the frontend dev server:

npm run dev

Open Cypress:

npx cypress open

Select a test file (e.g., login.cy.js) to run tests in the Cypress interface.

Backend Testing (Jest & Supertest)

Run the tests:

cd backend
npm test

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages