Skip to content

ronan-develop/BilemO

Repository files navigation

BileMo

Codacy Badge

Web service exposing a rest api

⚠️ Voters are in place for the membership-belonging

sample data here if needed:

Setup

  1. Clone repository and installing dependencies with your bash.
git clone https://gitlab.com/ron2cuba/bilemo.git && composer install
  1. configure database in .env or .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"
  1. Launch command in your bash
doctrine:database:create && doctrine:schema:update --force

Fixtures are available:

docdtrine:fixtures:load
  1. Create a JWT Folder in config folder
  2. Generate private key:
openssl genpkey -out config/jwt/private.pem -aes256 -algorithm rsa -pkeyopt rsa_keygen_bits:4096
  1. Generate public key
openssl pkey -in config/jwt/private.pem -out config/jwt/public.pem -pubout

Your keys will land in config/jwt/private.pem and config/jwt/public.pem 7. install certificate for ssl

server:ca:install
  1. Start the Symfony web server with SSL (exemple with symfony binary)
symfony serve -d

Documentation

https://127.0.0.1:8000/api/doc

Generate a token on login_check route to use app

About

REST API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors