This is the backend API for the sporTrainer mobile application. It provides the necessary endpoints and functionality to support user authentication, registration, and other features of the app.
To get started with the sporTrainer API, follow these steps:
-
Clone this repository to your local machine.
-
Install the required dependencies using
npm install
oryarn install
. -
Configure your environment variables, including AWS credentials and database connections.
-
Deploy the API to your AWS environment.
-
Access the deployed API endpoints to interact with the sporTrainer app.
- POST /register: Register a new user.
- POST /login: Authenticate and log in a user.
- GET /profile: Get user profile information.
- PUT /profile: Update user profile information.
- ... (Add more endpoints as needed)
For detailed information on each endpoint and their usage, refer to the API documentation.
The API uses authentication to secure endpoints that require user access. You can configure authentication using AWS Cognito or another authentication method of your choice.
- Make requests to the appropriate API endpoints as documented.
- Handle API responses and errors in your frontend code.
- Implement your frontend logic for user authentication and interaction with the API.
Contributions are welcome! If you would like to contribute to the sporTrainer API, please follow the guidelines in CONTRIBUTING.md.
This project is licensed under the MIT License - see the LICENSE file for details.