Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sample to for Real World App #8

Open
rajnishmishra20 opened this issue Jul 9, 2020 · 3 comments
Open

Sample to for Real World App #8

rajnishmishra20 opened this issue Jul 9, 2020 · 3 comments

Comments

@rajnishmishra20
Copy link

Would you please add any sample to show some real world REST sample like

SSL
MySQL db access
JWT Token auth
Caching
file uploads

Or we need to use barebone Workerman for this

@rajnishmishra20 rajnishmishra20 changed the title Sample to for Real Wolrd App Sample to for Real World App Jul 10, 2020
@gotzmann
Copy link
Owner

There are no SSL support yet - I'll plan to enable it but for the moment use Comet behing Nginx for all production projects.
I'll show how to use Eloquent ORM with Comet at documentation somewhat later this week.
Undortunately, I have'nt use JWT, caching and file uploads yet, but try to document such things next week too.

@rajnishmishra20
Copy link
Author

All this will make it one of most powerful REST frameworks. I hope eloquent will not be heavy as seen in Laravel.

@Receiver1
Copy link

Receiver1 commented Sep 15, 2023

I hope eloquent will not be heavy as seen in Laravel.

I don’t think it’s a good idea to add Eloquent to the project; it’s a very heavy ORM for such a fast framework. Personally, I use it in conjunction with Medoo. The code is incredibly simple and incredibly fast. The server in France responds to a request from Russia in just 60 ms. At the same time, Laravel takes 400-800 ms to do this. I'm still in shock! =)

For JWT you can use any library that follows PSR. For example, I use ReallySimpleJWT, it integrates very easily and even has its own middleware for token verification.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants