Web service exposing a rest api
sample data here if needed:
- Clone repository and installing dependencies with your bash.
git clone https://gitlab.com/ron2cuba/bilemo.git && composer install- configure database in
.envor.env.local(prefer .env.local)
Example for mysql:
DATABASE_URL="mysql://"LOGIN DATABASE":"PASSWORD DATABASE"@127.0.0.1:3306/"NAME OF YOUR DATABASE"?serverVersion=8&charset=utf8mb4"
- Launch command in your bash
doctrine:database:create && doctrine:schema:update --forceFixtures are available:
docdtrine:fixtures:load- Create a
JWTFolder inconfigfolder - Generate private key:
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096- Generate public key
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -puboutYour keys will land in config/jwt/private.pem and config/jwt/public.pem 7. install certificate for ssl
server:ca:install- Start the Symfony web server with SSL (exemple with symfony binary)
symfony serve -dhttps://127.0.0.1:8000/api/docGenerate a token on login_check route to use app