Coder Social home page Coder Social logo

mvp's Introduction

mvp

USERS CAN SEARCH FOR EVENTS

USERS CAN SAVE EVENTS THEY ARE INTERESTED IN

USERS CAN VIEW THEIR SAVED EVENTS

USERS CAN VIEW WHO ELSE IS INTERESTED IN THEIR SAVED EVENTS

to do:
   1. create db with test users
        user = username 
               password - hashed
               email
               myEvents
    2. everything else

function render sign up page()

function render sign up form()

(user enters username - on.click()) function validate un() possible outcomes: (tests) password taken password invalid format
password null password not trimmed

	username valid
	function create user(id, username)  CREATE - api post call to db
	function create id()
	function store id, username()
	
	
 (user enters password) 
   function validate pass()
    possible outcomes: (tests)
        password too long
        password too short
        password null
    
        password valid
            auth password 
                create token - return - create secret hash - return
                password authorized -
	    
	    function update user()      GET/UPDATE
	    function fetch user()
	    function add hashed password to user()
	    function save user()
	    function store user info in db()
	    
	    function render main page()

(user selects i already have an account on.click())

   function render sign-in form()  

(user enters username - on.click()) function make api call to db() function validate un() possible outcomes: (tests) username not found username null username valid (user enters password) function validate pass() possible outcomes: (tests) password not found password null password valid

        if valid input - function auth password() (test)
                create token - return - create secret hash - return
                     if auth - function render main page()

(user selects continue as guest) function render main page()

function show/hide() (show main page/hide sign up/sign in)

function render form()
    (user selects event search and enters event name on.click)
        function handle event search()
            function validate entry() (tests)
                possible outcomes:
                    entry null
                    entry not found
                    entry valid
                 
                function clear input() 
                
                function make get request to eventful api()
                function return data()
                function show results(event)
	  
               
               function save event() mark user as interested in event
                    function create variable myEvents()
                    function save myEvents to db()
                function reset event listener()


(user selects artist search and enters artist name on.click)
       function handle artist search()
        function validate entry() (tests)
                possible outcomes:
                    entry null
                    entry not found
                    entry valid 
                    
                    function clear input() 
                    
                    function make get request to eventful api()                           
                    function return data()
                    function render results(event)
		
               
                function reset event listener()
                    
        
 (user selects location search and enters event name on.click)
        function handle location search()
        function validate entry() (tests)
                possible outcomes:
                    entry null
                    entry not found
                    entry valid 
                    
                    function clear input() 
                    
                    function make get request to eventful api()                           
                    function return data()
                    function show results(event page)
		function render event page()
               
                function reset event listener()
                    

   (user selects user search and enters user name on.click)
        function handle user search()
            function validate entry() (tests)
                possible outcomes:
                    entry null
                    entry not found
                    entry valid 
                    
                    function clear input() 
                    function reset event listener()
                    function make get request to db()
                    
                        function seed db()
                        function return user data()
                        function dispaly user data()

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.