Skip to content

pratapalakshmi/fithead

Repository files navigation

FitHead

image

Setup Instructions

Prerequisites

Steps

  1. Clone the repository:

    git clone [email protected]:pratapalakshmi/fithead.git
    cd fithead
  2. 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.yml file.

  3. Access the application:

  4. Stopping the application:

    docker compose down -v

Additional Notes

  • If you make changes to dependencies or the Dockerfile, re-run with --build to 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.

Reference API

Get info.

curl --request GET \
  --url http://localhost:5001/about \
  --header 'User-Agent: insomnia/11.2.0'
image

Create an user

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"
}'
image

Verify User

curl --request GET \
  --url http://localhost:5000/users/gouthamnewp \
  --header 'User-Agent: insomnia/11.2.0'

update user

curl --request PUT \
  --url http://localhost:5000/users/goutham \
  --header 'Content-Type: application/json' \
  --header 'User-Agent: insomnia/11.2.0' \
  --data '{
	"age": "25"
}'

Generate Login Token

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"
}'

Verify token and API

curl --request GET \
  --url http://localhost:5000/contact \
  --header 'Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJmcmVzaCI6ZmFsc2UsImlhdCI6MTc1MDAwOTI0OSwianRpIjoiMDU4OWU3YTAtZGQ1Yi00MWExLTgwZDItNTRiNTI0NTUzOWYyIiwidHlwZSI6ImFjY2VzcyIsInN1YiI6ImY3MjY2MjVhLWQ0NDEtNDhiZS1hMmZhLWRmMDE0ZWRhY2U5NSIsIm5iZiI6MTc1MDAwOTI0OSwiY3NyZiI6IjNhMTcwMDNmLTU3MzMtNDE1OS04Zjc3LWVhZDhhYWUxMjA3NCIsImV4cCI6MTc1MDAxMjg0OX0.1Zud7kT5qGyQMk_0v67ksY4bjcDBWimLl0jP16hqFwc'

About

Fit Head

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published