This web application implements by Express, that can get/create/update/delete user data from a persistence database.
And not only that,it also simplely implements user link to each other, can get a list of "followers/fans". In the user model, the 'gps' field used to storage the user addres latitude and longitude that can find user nearby friends.
- MySQL5.7:storage user model data
- Redis:storage user and follwers relation data
In the config/index.ts
you must modify it if you want to run it in your environment.
See detail from this link
npm install
npm run build
npm run start
If you want to test the API, you can run the test demo, it is in the test
directory.
When the Application running,it will print log at the important position, for example the apps start or error occur,and the API receive a request.
The the log file is in the log
directory.