- Lambert Liu
- Shijie Feng
- San Tran
- Kailie Chang
- Lambert and Shijie own development and testing of the posting microservice, BFF recent functionalities, xml generation
- San and Kailie own development and testing of the voting microservice, BFF top and hot functionalities
- All group member own the procfile, WSGI server, load balancer, and Tuffix deployment
- Rename
env.txt
to.env
to setup the deployment environment - Start DynamoDB on your computer open a command prompt window, navigate to the directory where you extracted DynamoDBLocal.jar, and enter the following command.
$ java -Djava.library.path=./DynamoDBLocal_lib -jar DynamoDBLocal.jar -sharedDb
3.Then open another terminal instance in the project folder and run foreman
$ foreman start -c
- Open yet another terminal instance and type the command:
$ ulimit -n 8192 && caddy
- IN YET ANOTHER terminal instance type the command:
$ flask run
We are under the belief that we can run the BFF as another set of microservices using foreman. However, for the sake of not having this potentially blow up we will run it using flask. 6. And open the last instance of the terminal, and type the command:
$ python3 test.py
Also to keep the screen clutter down I opted to not display some json data. If you wish to see the json data type
$ python3 test.py -v
- create a new post
- delete an existing post
- retrieve an existing post
- list all posts from all communities
- list all posts from a particular community
- Upvote a post
- Downvote a post
- Report the number of upvotes and downvotes for a post
- List the n top-scoring posts to any community
- Given a list of post identifiers, return the list sorted by score.
- The 25 most recent posts to a particular community
- The 25 most recent posts to any community
- The top 25 posts to a particular community, sorted by score
- The top 25 posts to any community, sorted by score
- The hot 25 posts to any community, ranked using Reddit’s “hot ranking” algorithm.