8000 GitHub - mondesirm/bespectacled
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

mondesirm/bespectacled

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Authentication using Symfony, API Platform and Vue.js


banner

The application uses Symfony with API Platform and Vue.js.

Installation

The installation can be done using docker. You just have to execute the following command

docker-compose up -d --build

To install the project, please run the following command.

docker exec -it php bash /var/www/api/installation.sh

To generate JWT Key:

docker exec -it php bash openssl genrsa -out config/jwt/private.pem -aes256 4096
docker exec -it php bash openssl rsa -pubout -in config/jwt/private.pem -out config/jwt/public.pem

In case first openssl command forces you to input password use following to get the private key decrypted:

docker exec -it php bash openssl rsa -in config/jwt/private.pem -out config/jwt/private2.pem
docker exec -it php bash mv config/jwt/private.pem config/jwt/private.pem-back
docker exec -it php bash mv config/jwt/private2.pem config/jwt/private.pem

If you want to deploy your application on a domain other than localhost, modify the following line in api/.env.local.php

//'CORS_ALLOW_ORIGIN' => '^https?://(localhost|127\\.0\\.0\\.1)(:[0-9]+)?$',
//CHANGE THIS BY
'CORS_ALLOW_ORIGIN' => '^https?://(sub.domain.ext)(:[0-9]+)?$',

Usage

The API is available at the following address : http://localhost/api

The front application is available at the following address : http://localhost:8080

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 79.2%
  • Vue 12.5%
  • JavaScript 4.3%
  • Shell 1.6%
  • Dockerfile 1.1%
  • Twig 0.8%
  • HTML 0.5%
0