The user service for the mindtastic backend
Python >= 3.9
pip install -r requirements.txt
Get MongoDB credentials and add them to .env file.
cp .env.example .env
We provide a docker-compose.yml
for bringing up the service and a MongoDB database for local development. For a quickstart you should have MONGO_INITDB_ROOT_USERNAME and MONGO_INITDB_ROOT_PASSWORD in your env file, and just run
docker compose up
Build Docker image
docker build -t testimage .
Start Docker container
docker run -d --name testcontainer -p 8000:8000 testimage
Show "Hello World" under 0.0.0.0:8000
To test the endpoints, run the following command (After installing pytest):
pytest