Fully responsive, multilingual, NodeJs forum app built using Mongoose, ExpressJs, React, Socket.IO, JWT.
Libraries are out of date. Runs on Nodejs 16
-
Clone and install dependencies
-
git clone https://github.com/xrystalll/MERN-Forum.git -
cd MERN-Forum -
npm install -
And install for client
cd clientnpm install
-
-
Fill environment (rename file
.env.developmentto.env)PORT- Express server portBACKEND- The address where located backendCLIENT- The address where located the react client. The backend and client must point to each other and can be the same if running on the same addressMONGODB- Your MongoDB urlSECRET- You can generate a secret key by execute the/src/modules/utils/generate_keys.jsfile in console
-
Set backend address for client in file
/client/src/support/Constants.js
-
Go to the client folder
cd client -
Build client production build with the command
npm run buildor run with the commandnpm start -
Run backend with the command
npm startor in development modenpm run dev -
Enjoy 🙌
Make the user an admin manually through the database by setting the role value to 3. Then the admin can assign moderators through the frontend.
