- Docker and Docker Compose installed on your machine.
-
Clone the repository:
git clone [email protected]:pratapalakshmi/fithead.git cd fithead
-
Build and start the services:
docker compose up -d
This command will build the Docker images and start all services defined in your
docker-compose.ymlfile. -
Access the application:
- By default, the Flask app will be running at http://localhost:5000.
-
Stopping the application:
docker compose down -v
- If you make changes to dependencies or the Dockerfile, re-run with
--buildto rebuild the images. - Database migrations are handled automatically on container startup.
- For development, you can modify the source code and restart the containers as needed.
For any issues, please refer to the project documentation or open an issue in the repository.
curl --request GET \
--url http://localhost:5001/about \
--header 'User-Agent: insomnia/11.2.0'
curl --request POST \
--url http://localhost:5000/users/insert \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/11.2.0' \
--data '{
"username": "gouthamnplpok",
"email": "[email protected]",
"password": "tempKey@1234",
"age": 30,
"gender": "Male",
"location": "Hyderabad",
"interests": "Tennis, Cricket",
"bio": "Engineer and Tennis player",
"profile_picture": "Somepic"
}'
curl --request GET \
--url http://localhost:5000/users/gouthamnewp \
--header 'User-Agent: insomnia/11.2.0'curl --request PUT \
--url http://localhost:5000/users/goutham \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/11.2.0' \
--data '{
"age": "25"
}'curl --request POST \
--url http://localhost:5000/login \
--header 'Content-Type: application/json' \
--header 'User-Agent: insomnia/11.2.0' \
--data '{
"email": "[email protected]",
"password": "tempKey@1234"
}'curl --request GET \
--url http://localhost:5000/contact \
--header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc1MDAwOTI0OSwianRpIjoiMDU4OWU3YTAtZGQ1Yi00MWExLTgwZDItNTRiNTI0NTUzOWYyIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6ImY3MjY2MjVhLWQ0NDEtNDhiZS1hMmZhLWRmMDE0ZWRhY2U5NSIsIm5iZiI6MTc1MDAwOTI0OSwiY3NyZiI6IjNhMTcwMDNmLTU3MzMtNDE1OS04Zjc3LWVhZDhhYWUxMjA3NCIsImV4cCI6MTc1MDAxMjg0OX0.1Zud7kT5qGyQMk_0v67ksY4bjcDBWimLl0jP16hqFwc'