Skip to content
This project is based on the course Symfony REST (https://knpuniversity.com/screencast/symfony-rest) but using Symfony 4, there's a working example at https://github.com/spelcaster/symfony4-rest-api-boilerplate
CSS PHP HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin
config
public
src Symfony REST: Level 4 Feb 22, 2018
templates
tests
translations
.env.dist
.gitignore
LICENSE
README.md
composer.json
composer.lock
phpunit.xml.dist
symfony.lock

README.md

Installing

composer install

Database

bin/console doctrine:database:create
bin/console doctrine:migrations:migrate
bin/console hautelook:fixtures:load

Generate private and public keys to generate JWT

openssl genrsa -out config/jwt/private.pem -aes256 4096
openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem

# check private key
openssl rsa -in config/jwt/private.pem -check

# check public key syntax, throw error if invalid
openssl rsa -inform PEM -pubin -in config/jwt/public.pem -noout

Run tests

bin/phpunit

Important: Don't forget to adjust your environment variables defined in phpunit.xml.dist.

Todo

  • Fix resources scss
  • Fix resources font-awesome
  • Implement API
  • Fix unit test for different environments (dev and test should differ)
You can’t perform that action at this time.