Skip to content

shobhit15082003/medi_leger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediLeger

Table of Contents

Folder Structure

medi_ledger/
│
├── backend/
│   ├── config/                    # Configuration files 
│   ├── controllers/               # API endpoint controllers 
│   ├── middlewares/               # Custom middleware 
│   ├── models/                    # Mongoose models 
│   ├── routes/                    # API routes definitions
│   ├── utilities/                 # Utility functions 
│   ├── app.js                     # Express app setup
│   └── index.js                   # Server setup and initialization
│
├── frontend/
    ├── public/                    # Public assets and HTML template
    ├── src/                       # React source files
        ├── assets/                # Images, logos, and static assets
        ├── components/            # Reusable React components 
        ├── pages/                 # Full page components 
        ├── services/              # API service functions for frontend
        ├── App.js                 # Main React component
        └── index.js               # Entry point for React

Backend Setup

  1. Navigate to the backend directory and install dependencies:

    cd backend
    npm install
  2. Create a .env file and configure your environment variables :

PORT=
DATABASE_URL=""

JWT_SECRET=

CLOUDINARY_CLOUD_NAME=
CLOUDINARY_API_KEY=
CLOUDINARY_API_SECRET=

MAIL_PASSWORD=
MAIL_USER=
MAIL_HOST=
MAIL_PORT=
  1. Run the backend server:

    npm run dev

Frontend Setup

  1. Navigate to the frontend directory and install dependencies:

    cd frontend
    npm install
  2. Run the frontend server:

    npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published