#✨ Digilekh
Digilekh is a web application designed to manage .
To set up this project locally, follow these instructions:
To set up the backend, you need to install the following dependencies:
-
Languages and Frameworks:
- Node.js (runtime environment)
- Express.js (web framework)
-
Database:
- MongoDB (or your chosen database)
-
Others:
- Any backend-specific packages listed in
package.json
.
- Any backend-specific packages listed in
-
Navigate to the
backend
directory:cd backend
-
Install Dependencies
npm i npm install express npm install jsonwebtoken npm install multer mongoose socket.io dotenv cors body-parser cookie-parser
-
If not already installed, consider adding these development utilities: ``sh npm install nodemon --save-dev
-
Create a
.env
filePORT=your-port-number MONGO_URI=your-mongo-uri JWT_SECRET=your-jwt-secret NODE_ENV=production
project/
├── middleware/
│ ├── multer.js // Custom multer configuration
│ └── auth.js // Authentication middleware
├── models/
│ ├── blog.js
│ ├── comment.js
│ ├── community.js
│ └── user.js
├── socket.js // Socket implementation
├── routes/
│ ├── blogRouter.js
│ ├── communityRouter.js
│ └── userRouter.js
├── uploads/ // Directory for uploaded files
├── index.js
├── .env // Environment variables
└── package.json
node index.js
or
nodemon index.js
To set up the backend, you need to install the following dependencies:
- Languages and Frameworks:
- React.js
- Navigate to the
frontend
directory:cd frontend
- Install Dependencies
npm i npm install react-router-dom axios socket.io-client styled-components moment npm i react-icons emoji-picker-react
npm run dev
src/
├── components/
│ ├── Header.js
│ ├── Loader.js
│ ├── CommentSection.js
│ └── BlogPost.js
├── pages/
│ ├── Home.js
│ ├── About.js
│ ├── Contact.js
│ ├── Signup.js
│ ├── Login.js
│ ├── Profile.js
│ ├── Blogs.js
│ ├── BlogDetail.js
│ ├── CommunityList.js
│ ├── CommunityDetail.js
│ └── CommunityCreate.js
├── assets/
│ └── user.png
├── axios/
│ ├── index.js # Configure axios instances here
├── App.js
└── index.js
This project was created by Abhay Gupta. Feel free to connect on LinkedIn or check out more projects on GitHub.