https://github.com/ola-jed/vue.splash-api
Rest api for an unsplash clone
https://github.com/ola-jed/vue.splash-api
api asp-net-core unsplash-api
Last synced: 8 months ago
JSON representation
Rest api for an unsplash clone
- Host: GitHub
- URL: https://github.com/ola-jed/vue.splash-api
- Owner: Ola-jed
- License: mit
- Created: 2021-09-04T09:16:35.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-12-16T00:25:48.000Z (over 2 years ago)
- Last Synced: 2025-02-02T02:22:24.607Z (over 1 year ago)
- Topics: api, asp-net-core, unsplash-api
- Language: C#
- Homepage: https://vue-splash-api.herokuapp.com/swagger/index.html
- Size: 155 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Vue.Splash-API
Rest api written with Asp.Net Core for an [unsplash](https://unsplash.com/) clone
## Requirements
- [Dotnet](https://dotnet.microsoft.com/download)
- [Postgres](https://www.postgresql.org/)
- [A Backblaze account](https://www.backblaze.com/) or a [Microsoft Azure account](https://portal.azure.com/)
>
> Create the database `splash` in postgres and set _**UserId**_ and _**Password**_ environment variables for the database credentials.
>
> Set _**KeyId**_, _**AppKey**_ and _**BucketId**_ environment variables for Backblaze credentials.
>
> Set _**MailUser**_, _**MailPassword**_ and optionally _**MailHost**_ and _**MailPort**_ for environment variables for mail config.
>
> Set _**AzureBlobKey**_ which is the access key for azure storage account and _**ContainerName**_ which is the name of the container you will use to store the files
## Setup
```shell
git clone https://github.com/Ola-jed/Vue.Splash-API.git
cd Vue.Splash-API/Vue.Splash-API
# Set the env vars before
# export X=xxx or dotnet user-secrets set "Key" "Value"
dotnet ef database update
dotnet run
```
You can also try the [frontend](https://github.com/tobihans/Vue.Splash) built by [@tobihans](https://github.com/tobihans)
## TODO
- [ ] Unit tests
> If you cannot setup backblaze or azure, you can swap the storage service to use by `LocalStorageService` in the file `Extensions/ServiceCollectionExtensions.cs` (line 167)