Server Side react javascript
The source repository is https://github.com/ccapeng/bookstore_pro
Once you have react deployed to public web site, then you have exposed your code logic.
So, put it to server side and only allow login user to accept. In
frontend/templates/index.html
and in
fontend/urls.py
, mapjs
tourlpatterns
.I have js output from django view.
In
frontend/views.py
, the js file is only available after login. JS is a protected file, then just output file system.Through this concept, server side react can be in any kind back end server.
Also in the django restframework, all views are login required.
LoginRequiredMixin
is always the first argument in the class.
Last updated