Thank you for your interest in contributing to JWTPlus! Whether you're a seasoned developer or someone looking to contribute in other ways, we welcome all kinds of support. JWTPlus is an enterprise-ready JWT management platform built with Golang. Below, you'll find all the necessary steps to get started.
Even if you're not a developer, you can contribute by:
Before contributing, ensure you have the following installed on your system:
Start by cloning the JWTPlus GitHub repository:
git clone https://github.com/jwtplus/jwtplus.git
cd jwtplusJWTPlus requires two configuration files in development: jwtplus.yaml and dev.env
Both files are present on the top level of your source code folder.
Content of jwtplus.yaml
debug: false
server:
    ip: 0.0.0.0
    port: 2025
db:
    location: 127.0.0.1
    port: 3306
    username: jwtengine
    password: 123456
    dbname: jwtengineContent of dev.env
DB_USER=jwtengine
DB_PASSWORD=123456
DB_HOST=127.0.0.1
DB_PORT=3306
DB_NAME=jwtengine
TEST_DB_USER=testuser
TEST_DB_PASSWORD=testpass
TEST_DB_HOST=127.0.0.1
TEST_DB_PORT=3306
TEST_DB_NAME=testdbRun the below command to start the database MySQL container, which will also include phpMyAdmin for easy database management.
Have a look at docker-compose.yaml file for more information. It's available in the top-level folder of your cloned source code.
docker compose up -dThis command will start and
127.0.0.0:3306127.0.0.1:8080Security Tip: Avoid using weak passwords like 123456. Instead, generate a strong password and store it securely.
The codes will import all the tables and generate the root key by executing the below command. Please be sure to note down the root key, as it's needed for all root-based API calls.
go run main.go installUse the following command to start the JWTPlus. You are now all set and you can start the coding.
make runFor discussions and support, connect with the JWTPlus community on GitHub: JWTPlus GitHub Repository
The make file consists of the command which is needed to help you in your development. Below are the commands while working on the JWTPlus codes.
1. Create a New Migration
make create-migration name={your_migration_name}2. Generate SQLC code of your SQL queries
make sqlc-generate3. Apply Migrations on development db
make migrate-up4. Apply Migrations on test db
make migrate-test-up5. Rollback Last Migration on development db
make migrate-down6. Rollback Last Migration on test db
make migrate-test-down7. To run tests
make test8. To run tests with coverage:
make test-coverage9. To run app
make run10. To build production app
make build11. For performance analysis, use:
make benchmark