Worklog Service is a Restful API web service built on top of ASAB Micro Framework. It logs our daily working activities. Please refer to this dashboard to deploy the GUI.
- Python 3.6++
- RedisDB
- ASAB Framework
- MongoDB
- Install required stacks
- Create virtual environment:
$ python3 -m venv venv - Install python libraries:
$ pip install -r requirements.txt - Run RedisDB (Please add password:
bismillah); Suggested to use this dockerized version - Run MongoDB
- Run main file with the config file (
app.conf):$ python app.py -c app.conf
- Auth
POST /auth/login: Login and receiveaccess_tokenGET /auth/logout: Logout and delete (revoked/blacklisted) activeaccess_token
- Users
POST /users: Register a new userGET /users: Get all usersGET /users: Update a specific user (withJSON Body); Filter by IDDELETE /users: Delete a specific user; Filter by ID (String) or IDs (List)
- WorkLogs
- // TBD
- GIT Branching Model: https://nvie.com/posts/a-successful-git-branching-model/
- ASAB Micro Framework: https://github.com/TeskaLabs/asab
- AIOHTTP Mircro Framework: https://docs.aiohttp.org/en/stable/
- AIOHTTP JWT library: https://pypi.org/project/aiohttp-jwt/
- Route Decorator: https://pypi.org/project/aiohttp_route_decorator/0.0.1/