Modern Pun Delivery Platform.
NOTE: Content will be returned in a JSON format
/random
- Will return a random pun
{
"pun": "I broke my finger today, but on the other hand I was completely fine"
}
- Pun Twitter/Discord Bot
- Pun of the Day (POTD)
- Increased Pun Library
To run PAAS locally:
-
Spin up a local mongodb database with the following details:
- Database: PAAS
- Collection: Pun
-
Import puns.json into the new Pun Collection.
-
Run the PAAS application and navigate to the /pun endpoint in the browser! PRESTO
To run PAAS using an Atlas Mongo Database:
-
Add the mongo atlas instance connection string to the appsettings.java file in the following location:
- ConnectionStrings -> Atlas
-
Navigate to the startup.cs file and update the service to configure the IMongoCredentialProvider to point to the Atlas class like so:
-
services.AddScoped<IMongoCredentialProvider, MongoAtlasCredentialProvider>();
-
-
Assuming puns have been imported to Atlas instance, run the PAAS application and navigate to the /pun endpoint in the browser! PRESTO
Created by DF (2020).