https://github.com/thematters/matters-web
Implementation of the Matters.Town website
https://github.com/thematters/matters-web
apollo apollo-client matters platform
Last synced: 3 months ago
JSON representation
Implementation of the Matters.Town website
- Host: GitHub
- URL: https://github.com/thematters/matters-web
- Owner: thematters
- License: apache-2.0
- Created: 2019-02-08T15:28:02.000Z (over 7 years ago)
- Default Branch: develop
- Last Pushed: 2026-03-09T10:31:02.000Z (4 months ago)
- Last Synced: 2026-03-09T15:10:24.075Z (4 months ago)
- Topics: apollo, apollo-client, matters, platform
- Language: TypeScript
- Homepage: https://matters.town
- Size: 108 MB
- Stars: 87
- Watchers: 6
- Forks: 24
- Open Issues: 95
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# matters-web
   [](http://commitizen.github.io/cz-cli/)
## Getting Started
### Start local dev
- Install [commitizen](https://github.com/commitizen/cz-cli) globally: `npm install commitizen -g`
- Install dependencies: `npm i`
- Environment variables: `cp .env.local.example .env.local`
- Run `npm run gen:type`
- Run `npm run i18n`
- Run `npm run dev`, then go to `http://localhost:3000/`
### Build and run production server
`npm run build && npm run start`
### Start local dev with Docker
- Environment variables: `cp .env.local.example .env`
- Set command alias: `source bin/dc-alias`
- Build docker image: `dc build`
- Run:
- `dc up` or `dc run --service-ports web npm run dev`
- then go to `http://localhost:3000/`
> NOTE: If new packages are added to package.json, `dc up` will use `npm i` to install those packages. But if you are using `dc run --service-ports web npm run dev`, you need to run `dc run web npm i` manually to make sure that new packages are installed.
### Build with docker
- Set command alias: `source bin/dc-alias`
- `dc run web npm run build`
### Push and pull docker image
- Set command alias: `source bin/dc-alias`
- Build docker image: `dc build`
- aws configure, then input your access key and secret
- Login AWS ECR with `$(aws ecr get-login --no-include-email --region ap-southeast-1)`
- Push:
- `docker push 903380195283.dkr.ecr.ap-southeast-1.amazonaws.com/matters-web:latest`
- `docker tag matters-web:latest 903380195283.dkr.ecr.ap-southeast-1.amazonaws.com/matters-web:latest`
- Pull:
- `docker pull 903380195283.dkr.ecr.ap-southeast-1.amazonaws.com/matters-web:latest`
- `docker tag 903380195283.dkr.ecr.ap-southeast-1.amazonaws.com/matters-web:latest matters-web:latest`
## Testing
See [Playwright Testing Guide](https://www.notion.so/matterslab/Playwright-Testing-Guide-60caa248d5ce4d70938b7b2f2c7e9139).
## Conventions
See `.cursor/rules` and [Team Wiki](https://www.notion.so/matterslab/Conventions-acbed6763f6746319396978c19340d78).
## Tools
### VS Code
#### Settings
See `.vscode/settings.json`
#### Extensions
See `.vscode/extensions.json`
### Vim
#### Settings
For vim users, you might want to see `.vim/.vimrc` (using vim-plug).