You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure the following environment variables are set before running the container:
63
+
64
+
-**DB_CONNECTION:** Connection string for the PostgreSQL database (e.g., Host=localhost;Port=5432;Database=Shortify;Username=yourUsername;Password=yourPassword).
65
+
-**REDIS_CONNECTION:** Connection string for Redis (e.g., localhost:6379).
66
+
-**APP_SECRET:** A secret key for signing JWT tokens.
67
+
-**CLIENT_SECRET:** Client-specific secret for enhanced security.
68
+
-**SENDER_EMAIL:** Email address for sending OTPs or notifications.
69
+
-**SENDER_EMAIL_PASSWORD:** Password for the sender email.
70
+
-**ALLOWED_HOST:** A comma-separated list of allowed host URLs.
Use an environment variable manager or .env file to configure the following values:
105
+
106
+
-**DB_CONNECTION:** Connection string for the PostgreSQL database (e.g., Host=localhost;Port=5432;Database=Shortify;Username=yourUsername;Password=yourPassword).
107
+
-**REDIS_CONNECTION:** Connection string for Redis (e.g., localhost:6379).
108
+
-**APP_SECRET:** A secret key for signing JWT tokens.
109
+
-**CLIENT_SECRET:** Client-specific secret for enhanced security.
110
+
-**SENDER_EMAIL:** Email address for sending OTPs or notifications.
111
+
-**SENDER_EMAIL_PASSWORD:** Password for the sender email.
112
+
-**ALLOWED_HOST:** A comma-separated list of allowed host URLs.
Ensure you have the .NET 8 SDK installed. Then, restore the NuGet packages:
129
+
130
+
```
131
+
dotnet restore
132
+
```
133
+
<br>
134
+
135
+
<p>4. Run the Application:</p>
136
+
137
+
```
138
+
dotnet run
139
+
```
140
+
<br>
141
+
142
+
<p>5. Access the Swagger UI:</p>
143
+
<p>Swagger UI will be available at <atarget="_blank"href="http://localhost:5000/swagger/index.html">http://localhost:5000/swagger/index.html</a> or the port specified in the console logs.</p>
144
+
145
+
<br>
146
+
147
+
<h2>📚 API Documentation</h2>
148
+
The API is fully documented using Swagger. Access the live documentation here:
<p>This project is licensed under the Apache License. See the <ahref="https://github.com/ScriptSage001/Shortify.NET/blob/master/LICENSE.txt">LICENSE</a> file for details.</p>
198
+
199
+
<br>
200
+
201
+
<h2>🌟 Acknowledgments</h2>
57
202
58
-
This project is licensed under the Apache License
203
+
- Inspiration from modern URL shorteners like Bitly.
204
+
- Thanks to the .NET community for continuous support and tools.
0 commit comments