Wiredcraft / test-backend

39 stars 76 forks source link

Backend Test Solution - Ahmed Gaber (Biga) #15

Closed BigaDev closed 6 years ago

BigaDev commented 6 years ago

Happy new year

Kindly find my solution for the backend test here.

I decide to not use Loopback since it has own User model with authentication and authorization functions, so I feel that it doesn't make sense to use it.I implemented the test using express.js and some NPM packages like mongoose (MongoDB), node-restful (generate CRUD APIs for user model), JWT (manage users tokens) and config (configuration management).

xavierchow commented 6 years ago

Hi @BigaDev, this is Xavier from Wiredcraft, thanks for your PR and appreciated you built the authentication part, could you let me know what else can be improved for your authentication implementation if putting it to a real production?

BigaDev commented 6 years ago

Hi @xavierchow, nice to meet you. your question very interesting and I think there a lot of things can be done such as:

Additional points: