The backend powering Mitra - the distributed social network.
$ docker-compose run composer install
Add user id to your shell init file
Add the following to your .bashrc (or to the respective dot file if you don't use bash)
export USER_ID=$(id -u)
Create an rsa key with the following instructions
$ ssh-keygen
$ docker-compose up
$ make fixtures-load
$ make code-style
$ make static-analysis
$ make test # unit and integration tests
$ make test-unit # unit tests only
$ make test-integration # integration tests only
$ make coverage
Once the Mitra backend is up and running it is reachable over:
http://localhost:1337
To authenticate against the API you can use a JWT token with the following payload:
{
"userId": "your uuid"
"iat": "current unix timestamp"
}
and sign it with the HS256 algorithm by using the development secret s3kr3T!. You can use jwt.io
to generate such a development JWT token.