This repository contains the source code for the Better Together Website, a Vue.js 2 application powering bebettertogether.ca.
The Better Together Website is the official site for the Better Together Community Cooperative and Community Engine projects. It serves as a central hub for information, updates, and resources related to the Better Together initiative, which aims to foster collaboration, communication, and connection within and across communities.
- Informative sections about the Better Together Community Engine
- Responsive design optimized for both desktop and mobile devices
- Integration with the Better Together Community Engine Rails gem
- Live chat and discussion forums
- Role-based access control
- Multi-language support with Rails' I18n tooling
- Dynamic user experiences with Turbo and Stimulus
To get started with the development of the Better Together Website, follow these steps:
To get started with the development of the Better Together Website, follow these steps:
-
Clone the repository:
git clone https://github.com/better-together-org/better-together-website.git cd better-together-website
-
Install dependencies:
npm install
-
Start the development server:
npm run serve
The application will be available at
http://localhost:8080
.
To run the application locally, use the following command:
npm run serve
To build the application for production, use the following command:
npm run build
This will generate the static files in the dist
directory, which can be served by a web server.
The codebase is organized as follows:
src/
: Contains the source code for the application.components/
: Reusable Vue components.views/
: Vue components representing different pages.assets/
: Static assets such as images and styles.router/
: Vue Router configuration.store/
: Vuex store configuration.
npm run serve
: Starts the development server.npm run build
: Builds the application for production.npm run lint
: Lints and fixes files.
Create a .env
file in the root directory to configure environment variables. For example:
VUE_APP_API_URL=https://api.bebettertogether.ca
We welcome contributions to the Better Together Website! If you would like to contribute, please follow these steps:
-
Fork the repository:
Click the "Fork" button at the top right corner of this page to create a copy of the repository in your GitHub account.
-
Clone your fork:
git clone https://github.com/your-username/better-together-website.git cd better-together-website
-
Create a new branch:
git checkout -b feature-branch-name
-
Make your changes:
Add your changes and commit them with a descriptive message.
-
Push your changes to your fork:
git push origin feature-branch-name
-
Create a pull request:
Go to the original repository and click the "New Pull Request" button. Provide a clear description of your changes and why they should be merged.