A forum application for people in Mathworks to chat and share topics about AI.
- User authentication (signup, login, logout)
- Create, read, update, and delete posts
- Comment on posts
- Markdown support for post content
- Responsive design
- FastAPI (Python web framework)
- MongoDB (Database)
- Bootstrap 5 (Frontend)
- Jinja2 (Template engine)
- Clone the repository
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Set up environment variables in
.env
:SECRET_KEY=your_secret_key MONGODB_URL=your_mongodb_atlas_url DB_NAME=forum_db
- Run the application:
uvicorn app.main:app --reload
- Create a Heroku account and install the Heroku CLI
- Login to Heroku:
heroku login
- Create a new Heroku app:
heroku create your-app-name
- Set up environment variables on Heroku:
heroku config:set SECRET_KEY=your_secret_key heroku config:set MONGODB_URL=your_mongodb_atlas_url heroku config:set DB_NAME=forum_db
- Deploy to Heroku:
git push heroku main
SECRET_KEY
: Secret key for JWT token generationMONGODB_URL
: MongoDB Atlas connection URLDB_NAME
: MongoDB database name
- Fork the repository
- Create a new branch
- Make your changes
- Submit a pull request