blchelle/reddit-clone-cli

Phase 2 starter code

blchelle opened this issue · 1 comments

Description

On running the program, the following should happen

  1. Read/Validate the command-line parameters for the port number. -> #4
  2. A connection should be established to the database at the port number specified as the command-line parameter.
  3. Show a menu with the following options 'Login with uid', 'Login Anonymously', 'Exit'.
    4a. If you choose 'Login with uid', prompt for a uid.
    4b. Store the users uid in the program and show a menu with the options 'Post a Question', 'Search for Questions', 'Log out'
    5a. If you choose 'Login anonymously', then store None as the users uid in the program and show a menu with the options 'Post a Question', 'Search for Questions', 'Log out'.
    6a. If you choose 'Exit', terminate the program.

done