Please read the PRIORITY LIST before contributing.
We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting an issue
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
- Becoming a maintainer
The code of conduct is described in CODE_OF_CONDUCT.md
.
All changes happen through pull requests. Pull requests are the best way to propose changes. We actively welcome your pull requests and invite you to submit pull requests directly here, and after review, these can be merged into the project.
This project is using the conventional commits standard. Please follow these steps to ensure your commit messages are standardized:
- Make sure your shell path is in the root of the project (not inside any of the packages).
- Stage the files you are commiting with
git add [files]
. - Run
git commit -m [commit message]
.
- Fork the repo and create your branch (usually named
patch-%the number of PRs you've already made%
) fromdev
. - If you've added code that should be tested, add some test examples.
- Ensure to describe your pull request.
Do this if you only want to do React stuff and don't want to touch Elixir:
Navigate to /apps/web
- Run
npm i -g pnpm
- Run
pnpm
- Run
pnpm dev
(this turposes) - Read
spek/README.md
for more information and a fixes for known development issues.
- Set up the front-end (previous step).
- Go to
spek/public/locales
. - Check if a folder with the language you want to add / edit already exists. If not, copy
en/translation
, create the folder and paste it there. - Edit the JSON file. Make sure that it's valid.
How to run locally:
Install PostgreSQL:
Start PostgreSQL:
- macOS: Run
brew services start postgresql
. - Windows: Start PostgreSQL through the control panel or run
net start postgresql-{version}
. - Linux: Run
/etc/rc.d/init.d/postgresql start
.
Create a DB named spek_repo
:
$ psql postgres
$ CREATE DATABASE spek_repo;
Elixir installation guide here.
Navigate to /api
and set the following environment variables:
export DATABASE_URL=postgres://user:password@localhost/kousa_repo2
export ACCESS_TOKEN_SECRET=
export REFRESH_TOKEN_SECRET=
export GITHUB_CLIENT_ID=
export GITHUB_CLIENT_SECRET=
export GITLAB_CLIENT_ID=
export GITLAB_CLIENT_SECRET=
export API_URL=http://localhost:4001
export WEB_URL=http://localhost:3000
export PORT=4001
You can save these variables in a
.txt
and runsource path/to/file.txt
Run the following commands:
$ mix deps.get
$ mix ecto.migrate
Start the server
$ iex -S mix
We use GitHub issues to track public bugs. Please ensure your description is clear and has sufficient instructions to be able to reproduce the issue. Report a bug by opening a new issue; it's that easy!
- Q: [The Question?]
- A: [The Answer!]
Great Feature Requests tend to have:
- A quick idea summary.
- What & why you wanted to add the specific feature.
- Additional context like images, links to resources to implement the feature etc, etc.
By contributing to Spek, you agree that your contributions will be licensed under the LICENSE file.