#β¨ 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.