Creating an account and being allowed to run a restaurant on a platform are different actions. Treating them as the same event makes onboarding deceptively simple, but leaves the system with little room to review applications or explain what access a new user actually has.
Buwigs Eats separates those concerns. The documented API creates a login during registration, while restaurant applications still require superadmin approval. Its current login flow uses Nepal phone numbers, reflecting the local operating context of the application.
Make the boundaries visible to the user
A newly registered person should be able to understand whether they have an account, whether their restaurant application has been submitted, and whether it has been approved. These are product states, not just permissions hidden inside an API.
The same principle appears in deployment. The backend container waits for PostgreSQL and applies Alembic migrations before starting the API. A process that has started is not necessarily ready to serve the application correctly; database readiness is another explicit boundary.
Decisions that matter
Use the local login convention
The current API uses Nepal phone numbers as login IDs. Email-only login and Google sign-in are retired.
This narrows supported registration to Nepal phone numbers.
Separate registration from approval
Registration creates an account immediately, while restaurant applications require superadmin approval.
The interface must distinguish an account from permission to operate a restaurant.
Apply migrations before serving requests
The container waits for PostgreSQL and applies Alembic migrations before the API starts. A migration failure stops startup.
Availability during deployment depends on a successful, compatible schema upgrade.
How it fits together
The key steps make the boundaries of the product easier to see:
- A person registers using a supported Nepal phone number.
- The restaurant application goes through a separate approval step.
- The platform grants restaurant access according to the approved application and relevant role.
A practical walkthrough
Consider a new restaurant operator who completes registration successfully and then opens the administration area. If the application is still waiting for approval, an empty dashboard is not enough information. The product needs to explain the pending state and avoid implying that a restaurant is already ready to operate.
This scenario is a way to review the documented separation between registration and approval. It is not a description of a measured onboarding result. The same walkthrough should include rejection, a corrected application and an administrator reviewing the request. Looking at the journey from both roles helps identify gaps that a successful registration test alone would miss, especially when the user can log in before all permissions are available.
Questions worth asking
- Does registration success explain what restaurant access is available?
- Can the operator tell a pending application from an approved one?
- Are unsupported phone numbers rejected with useful feedback before submission?
What we take from it
Narrowing login to Nepal phone numbers creates a clear local convention, but it also limits who can register. That constraint needs to be reflected in form labels and validation rather than discovered only after a failed submission.
Good onboarding explains what has happened and what comes next. The API boundaries provide the structure; the interface needs to turn them into an understandable journey.