SimpleForum is a web application where users can interact by registering, logging in, and logging out. The application allows users to create, edit, and delete posts, search for posts, and follow or un-follow other users. Additionally, users can chat with others who are online.
This README is also available in Chinese.
This is a demo
- User registration and authentication.
- Create, edit, and delete posts.
- Search for posts.
- Follow and un-follow users.
- Real-time chat with other users.
- JavaScript
- Node.js with Express
- EJS for templating
- Webpack and Babel for building and transpiling
- MongoDB for database
- Socket.io for real-time communication
To run SimpleForum on your local machine, you need to have Node.js and npm installed. You can download and install them from Node.js official website.
Clone the repository to your local machine:
git clone https://github.com/yourgithub/simpleforum.git
cd simpleforum
npm install
Before running the application, you must set up your environment variables. Create a .env file in the root directory and provide the following configurations:
DB_USERNAME=yourMongoDBUsername
DB_PASSWORD=yourMongoDBPassword
DB_HOST=yourMongoDBHost
APP_NAME=SimpleForum
DB_COLLECTION=yourCollectionName
DB_NAME=yourDatabaseName
To start the application, run the following command in the terminal:
npm run watch
This command will start the Node.js server and set up Webpack to watch for any changes in your source files.
Navigate to http://localhost:3001 in your web browser to start using SimpleForum. Register an account to explore all features.
Contributions are welcome! If you have suggestions or improvements, please fork the repository and submit a pull request.
This script is open-source and free to use under the MIT license.