Simple Message Board is a user-friendly and efficient forum platform developed with SvelteKit. It's designed to support community interactions and discussions in an organized manner. By integrating TypeScript, the project gains enhanced code clarity and reliability, contributing to a more manageable development process.
The platform utilizes PostgreSQL for robust and structured data management, which accommodates various features essential for a forum, such as user profiles, permissions, and discussion threads. The interface, styled with Tailwind CSS, offers a clean and responsive layout, making it accessible and easy to navigate for users.
Simple Message Board aims to provide a straightforward yet effective solution for online communities to engage, discuss, and share ideas in a collaborative space. Experience the Simple Message Board in action here.
These instructions will guide you through getting a copy of the project up and running on your local machine for development and testing purposes, as well as deploying it to Heroku.
Before setting up the project, ensure you have the following installed:
- Node.js (preferably the latest version)
- A package manager like npm (usually comes with Node.js)
- PostgreSQL for the database
-
Clone the repository to your local machine:
git clone https://github.com/spoonpaw/simple-message-board.git -
Navigate to the project directory:
cd simple-message-board -
Install the required dependencies:
npm install -
Copy the example
.envfile and fill in the values:
- Log in to your AWS Management Console and navigate to the SES service.
- Verify a new domain or email address for sending emails.
- Create SMTP credentials in SES for your application.
- Add SES configuration details to your
.envfile, including AWS region, SES access key ID, secret access key, and the verified email domain.
- Log in to your AWS Management Console and navigate to the S3 service.
- Click “Create Bucket.” Choose a unique name for your bucket and select the region.
- Follow the on-screen instructions to create the bucket. Make sure to note down the bucket name, as it will be used in your
.envfile.
- Install PostgreSQL if you haven't already.
- Open your PostgreSQL client (e.g., pgAdmin or psql).
- Create a new database for your application.
- Run the SQL queries found in
migrations/init.sqlto set up the database schema. - For seeding the database, execute the SQL scripts in
migrations/seeds/.
To start the development server, run the following command:
npm run dev
This will start the server and usually opens the app in a new browser tab. If it doesn't, you can manually visit http://localhost:3000 to view the application.
To create a production build of your app, run:
npm run build
After building, you can preview the production build with:
npm run preview
- Ensure you have the Heroku CLI installed and are logged in.
- Create a Heroku app with
heroku create. - Set up environment variables on Heroku using
heroku config:set. - Deploy your application using
git push heroku master. - Run database migrations on Heroku as needed.
Note: For specific Heroku deployment steps and configurations, refer to the deployment section of the SvelteKit documentation.
This project is licensed under the MIT License - see the LICENSE.md file for details