To get started, pull the Docker image from Docker Hub:yuandata/acct-mamt-image
docker pull yuandata/acct-mamt-image
After pulling the image, run the container using the following command:
docker run -d -p 8000:8000 yuandata/acct-mamt-image
This command starts the application and exposes it on port 8000 of your localhost.
Once the application is running, you can test the APIs using curl
.
- Create Account:
curl -X POST http://localhost:8000/account/create/ -d '{"username": "Urban", "password": "123456Ab"}' -H "Content-Type: application/json"
- Verify Account and Password:
curl -X POST http://localhost:8000/account/verify/ -d '{"username": "Urban", "password": "123456Ab"}' -H "Content-Type: application/json"
For a comprehensive guide and interactive documentation, visit:
- Online Documentation: yuandata.github.io/acct-mgmt-swagger
- Local Documentation: To view the API documentation locally, follow these steps:
- Clone the repository and navigate to the project directory:
git clone git@github.com:YuanData/acct_mamt.git cd acct_mamt
- Start the Django project:
python manage.py runserver
- Open your browser and navigate to http://localhost:8000/swagger/ to access the Restful API documentation.
To run the unit tests, execute the following command in the project directory:
python manage.py test account