Welcome to the official repository for the Prayer App API Server. This server is the backbone of our open-source prayer-sharing application, "Prayer", designed to foster a community of love and support as users share and pray for one another. Built with NestJS, this robust API server leverages Kysely for query building, Sentry for error reporting, and PostgreSQL as its database.
- User Authentication: Securely manage user sessions and protect personal data.
- Prayer Requests: Allow users to post, view, and manage their prayer requests.
- Community Interactions: Users can commit to pray for others, creating a supportive network.
- Error Reporting: Integrated Sentry for real-time error tracking and alerts.
- Node.js
- PostgreSQL database
- Sentry account for error reporting
-
Clone the repository:
git clone https://github.com/theagapefoundation/prayer-api.git
-
Navigate to the project directory:
cd prayer-api -
Install dependencies:
yarn install
-
Set up environment variables:
Create a
.envfile in the root directory and provide the necessary environment variables:DATABASE_URL=postgresql://username:password@localhost:port/dbname SENTRY_DSN=your_sentry_dsn
Run the server in development mode:
yarn run start:devDocumentation for API endpoints will be available once the server is running, typically at: http://localhost:3000/
Kysely is used for building SQL queries in a safe and efficient manner. It provides a fluent API to construct queries programmatically and helps prevent SQL injection.
This API server is configured to use PostgreSQL, a powerful open-source relational database. Ensure your PostgreSQL instance is running and accessible via the credentials provided in your .env file.
We welcome contributions to improve the Prayer API! Please feel free to fork the repository, make your changes, and submit a pull request.
If you encounter any issues or require assistance, please open an issue on the GitHub repository.
This project is licensed under the MIT.
Thank you for being a part of the Prayer community. Your contribution helps in spreading love and support through the power of prayer.