This is the backend for the SwiftBuddies application, built using Deno and MongoDB. It provides a RESTful API for managing users, posts, images, and events.
-
Environment Variables:
Create a
.env.local
file in the root directory and add the following environment variables:MONGODB_URL=<your-mongodb-url> SENTRY_DSN=<your-sentry-dsn> GCP_SERVICE_ACCOUNT_EMAIL=<your-gcp-service-account-email> GCP_PRIVATE_KEY=<your-gcp-private-key> GCP_PROJECT_ID=<your-gcp-project-id> GCLOUD_BUCKET_NAME=<your-gcloud-bucket-name>
-
Clone the repository:
git clone https://github.com/yourusername/swiftbuddies-backend.git cd swiftbuddies-backend
-
Install Deno:
Follow the instructions on the Deno website to install Deno.
-
Install dependencies:
Deno automatically handles dependencies through imports, so no additional installation steps are required.
-
Run the setup script:
deno task dev
This command will start the server with file watching enabled, allowing for automatic restarts on file changes.
The application uses MongoDB for data storage. Ensure that your MongoDB instance is running and accessible via the MONGODB_URL
environment variable.
Contributions are welcome! Please fork the repository and submit a pull request for any changes.
This project is licensed under the MIT License. See the LICENSE file for details.