Python Authentication API Beta

2 years ago

šŸ Exciting news! I'm glad to announce our new Python Flask API for user management, currently in beta. This API enables functionalities including user registration, login, authentication, and profile updates.
Keep in mind, data must be sent in form-data from the frontend. For successful logins, it's essential to save the returned JWT token in headers and continue sending it for user authentication and verification.
For the detailed setup instructions and more information about different features, be sure to check the documentation in the README.md file. Moreover, the application is fully Dockerized, ensuring consistency across different environments.
Please remember that this is still in beta, so upgrades and optimizations are underway. We warmly welcome your suggestions for improvements!

10 Replies

2 years ago

Template URL: https://railway.app/template/dRB-2L?referralCode=77Ydvt

**The message above is generated using Ai because I still don't know English well :D


2 years ago

why not have the template come with a mongo database?


2 years ago

Mongo creates its own schema automatically after creating a user in the register request.


2 years ago

Right, but your template does not come with a Mongo database, meaning the user now has to set that up themselves, this lowers the developer experience and subsequently the amount of traction this template will gain.


2 years ago

Okay, I wanted to add mongodb to the template, but I don't know if the created mongo database will write the correct mongo_url in the env settings. and the name of the database is arbitrary. If, when installing the template, it was automatically written into the env url of the created mongo, it would be more automated.
I am still learning how to work with the railway.


2 years ago

You would want to use reference variables to set the needed service variables -

https://docs.railway.app/guides/variables#referencing-another-services-variable


2 years ago

ok if i understood correctly it should be fine.
MONGOURL is default ${{ Clickhouse.MONGOURL }}
FLASKENV is default ${{ RAILWAYENVIRONMENT_NAME }}


2 years ago

The clickhouse name is purely just an example service name, you would need to use the correct namespace.


2 years ago

in this case, if mongo is created with the template, it should be like this: ${{ MongoDB.MONGO_URL }}


2 years ago

that's correct


Loading...