Skip to content

smrutiranjanbhuyan/Rail-Yatri

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

Rail-Yatri

file Structure (Frontend)

frontend/
│
├── public/              # Public assets like index.html, images, etc.
│   ├── index.html
│   └── ...
│
├── src/                 # Source files for the React application
│   ├── assets/          # Static assets like images, fonts, etc.
│   │   ├── images/
│   │   └── fonts/
│   ├── components/      # Reusable UI components
│   │   ├── Button.jsx
│   │   ├── Navbar.jsx
│   │   └── ...
│   ├── pages/           # Page components representing different routes
│   │   ├── Home.jsx
│   │   ├── About.jsx
│   │   └── ...
│   ├── layouts/         # Layout components (e.g., header, footer)
│   │   ├── MainLayout.jsx
│   │   └── ...
│   ├── hooks/           # Custom React hooks
│   │   ├── useAuth.js
│   │   └── ...
│   ├── context/         # Context API providers and consumers
│   │   ├── AuthContext.js
│   │   └── ...
│   ├── services/        # API calls and services
│   │   ├── api.js
│   │   └── ...
│   ├── store/           # Redux store setup and slices (if using Redux)
│   │   ├── index.js
│   │   └── ...
│   ├── styles/          # Global CSS or Tailwind configurations
│   │   ├── globals.css
│   │   └── ...
│   ├── utils/           # Utility functions
│   │   ├── helpers.js
│   │   └── ...
│   ├── App.jsx          # Main app component
│   ├── index.js         # Entry point for React
│   └── ...
│
├── .gitignore           # Git ignore file
├── package.json         # Project dependencies and scripts
├── tailwind.config.js   # Tailwind CSS configuration
└── ...


file Structure (Backend)

backend/
│
├── config/                  # Configuration files
│   ├── db.js                # Database connection setup
│   ├── default.json         # Default configuration file (if using config package)
│   └── ...                  # Other config files (e.g., environment variables)
│
├── controllers/             # Controllers handle the business logic
│   ├── authController.js    # Authentication related controllers
│   ├── userController.js    # User related controllers
│   ├── noteController.js    # Note related controllers
│   └── ...                  # Other controllers
│
├── middleware/              # Middleware functions
│   ├── authMiddleware.js    # Authentication middleware
│   ├── errorHandler.js      # Error handling middleware
│   └── ...                  # Other middleware
│
├── models/                  # Database models
│   ├── User.js              # User model
│   ├── Note.js              # Note model
│   ├── Blog.js              # Blog model
│   └── ...                  # Other models
│
├── routes/                  # Route definitions
│   ├── authRoutes.js        # Routes for authentication
│   ├── userRoutes.js        # Routes for users
│   ├── noteRoutes.js        # Routes for notes
│   └── ...                  # Other routes
│
├── services/                # Service layer for interacting with data sources
│   ├── authService.js       # Service logic for authentication
│   ├── userService.js       # Service logic for user operations
│   └── ...                  # Other services
│
├── utils/                   # Utility functions and helpers
│   ├── jwtHelper.js         # JWT token handling
│   ├── logger.js            # Logging utility
│   └── ...                  # Other utilities
│
├── validators/              # Validation logic for request data
│   ├── authValidator.js     # Validator for authentication data
│   ├── userValidator.js     # Validator for user data
│   └── ...                  # Other validators
│
├── .env                     # Environment variables
├── .gitignore               # Git ignore file
├── app.js                   # Main application setup and middleware configuration
├── server.js                # Entry point for starting the server
├── package.json             # Project dependencies and scripts
└── README.md                # Project documentation

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.1%
  • Other 0.9%