GithubHelp home page GithubHelp logo

mickgeek / symfony-react-restful-boilerplate Goto Github PK

View Code? Open in Web Editor NEW
29.0 29.0 14.0 862 KB

Symfony 4 + React (with Flow, Redux, Bootstrap 4 and other stuff) + JWT implementation + PostgreSQL

PHP 36.40% HTML 0.21% JavaScript 63.03% Twig 0.36%
bootstrap flow javascript jwt php postgresql react redux symfony

symfony-react-restful-boilerplate's People

Contributors

dependabot[bot] avatar mickgeek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

symfony-react-restful-boilerplate's Issues

401 after signing in

After signing in, when I click "Profile" the server returns 401 from "/account", with "message": "JWT is not found, invalid or expired.", logs out and then redirects to login. Any idea why?

Bugfix

Hello. This little nice project seems to work correctly.

BUT:

In file "UserTokenConttroller.php", line ca. 191:
change method from:
$user->updateErrorCode(User::STATUS_ACTIVE);

to:
$user->setStatus(User::STATUS_ACTIVE);

I already fusioned spa into api part, so I can't set pull request. Please fix it manually.

It seems this is a good base for me.

[FEATURE REQUEST] Seperate backend from frontend

Hey,

thank you very much for this. Would it be make more sense to seperate the api from the spa, for example create an repository for the symfony project and an repository for the react-app?

Best,
Christian

Cant login with initially created superuser

Steps I took:

  • I set up everything according to the README
  • Did not use your nginx config but set api AND frontend URLs to localhost
  • I created a superuser with the symfony console command
  • Tried to login
  • There was no jwt token so my request threw an symfony error

I also do not understand how it is possoble to be authenticated as Superuser at this IF-Statement:

if ($this->authorizationChecker->isGranted('ROLE_SUPER_ADMIN')) {

when it only accesses the method when you are not authenticated here:
* @Config\Security("is_granted('IS_AUTHENTICATED_ANONYMOUSLY')")

Please help

Thank you for your good work, I am still novice of react.
please help me. after set up project.
I do not understand why after click login, their are no respond[redirect to successful link].

Screen Shot 2562-09-09 at 13 12 01

and after go to http://0.0.0.0:3000/#/admin, this show

Error

Authorization is needed.

Thank you

How to run api server

I followed the instruction.
I installed composer and npm modules.
I tried to run api server by using this command
php bin/console server:run
But it didn't run.

How can I run it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.