OpenForum is an open-source forum template built with a TypeScript backend, designed to serve as a base for developers to create their own forums. Users can discuss any topic, making it a versatile platform for various communities.
OpenForum is designed to be a flexible and extensible forum template that developers can use to build custom forums for their specific needs. With a TypeScript backend, it ensures type safety and scalability.
- Multi-topic discussions: Users can create and participate in discussions on a wide range of topics.
- TypeScript backend: Ensures type safety and maintainability.
- MongoDB integration: For robust data storage and management.
- Node.js: Leverages the power and simplicity of Node.js for backend operations.
- Node.js: Ensure you have Node.js installed. You can download it from nodejs.org.
- MongoDB: Make sure you have MongoDB installed and running. You can download it from mongodb.com.
-
Clone the repository:
git clone https://github.com/programORdie2/OpenForum.git cd OpenForum
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env
file in the root directory and add the following:PORT=3000 JWT_SECRET="ASecretToEncryptSessions" DB_URL="mongodb://localhost:27017/openforum"
-
Run the application:
npm run dev
Or:
npm run build npm start
-
Access the forum: Open your browser and navigate to
http://localhost:3000
.
Once the forum is up and running, users can start creating discussions on any topic. Developers can further customize the forum by modifying the source code to suit their specific requirements.
We welcome contributions from the community! To contribute to OpenForum, please follow these steps:
- Fork the repository.
- Create a new branch:
git checkout -b my-feature-branch
. - Make your changes and commit them:
git commit -m 'Add new feature'
. - Push to the branch:
git push origin my-feature-branch
. - Submit a pull request.
All contributors must sign a Contributor License Agreement (CLA) before their contributions can be merged. This ensures that the project can remain open-source and free to use.
Please adhere to the existing code style and ensure your changes pass all automated error checks before submitting a pull request.
We value your feedback! If you have any suggestions, issues, or feature requests, please open an issue on GitHub.
OpenForum is released under the AGPL-3.0 License. See the LICENSE file for more details.