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
We want to create a route that allows users to submit their functions to the Serverless Functions application.
Expected Behavior
The user should be able to paste, or type, their code into the webpage and press the submit button to submit their code to the database.
Possible Implementation
An express POST route is create to allow users to submit their code in a form element. The backend server will save that code into the database.
Detailed Steps For Implementation
Create a table inside the database named: 'functions' (Brady)
Each row in that table should have the following columns.
function_id (primary ID is automatically added)
user_id
function_contents
timestamp (added automatically)
language
trigger_type (functions either invoke themselves automatically or they are maunally triggered)
(Noa, Sophia, Sasha)
1.5. Create a frontend EJS page that allows the user to enter their data.
Create a POST route called '/submit' that stores the user's funciton into the database.
Create a frontend form that allows the user to enter their function, choose the trigger type and the language. (In this case, there is going to be a text box, radio buttons for language, radio button for trigger type)
Save that data, i.e. the function body, the langauge, the trigger type, into the database. (Need to use SQL in this step)
Return a message indicating to the user that the step was completed succesfully or unsucessfuly.
The text was updated successfully, but these errors were encountered:
We want to create a route that allows users to submit their functions to the Serverless Functions application.
Expected Behavior
The user should be able to paste, or type, their code into the webpage and press the submit button to submit their code to the database.
Possible Implementation
An express POST route is create to allow users to submit their code in a form element. The backend server will save that code into the database.
Detailed Steps For Implementation
(Noa, Sophia, Sasha)
1.5. Create a frontend EJS page that allows the user to enter their data.
Create a POST route called '/submit' that stores the user's funciton into the database.
Create a frontend form that allows the user to enter their function, choose the trigger type and the language. (In this case, there is going to be a text box, radio buttons for language, radio button for trigger type)
Save that data, i.e. the function body, the langauge, the trigger type, into the database. (Need to use SQL in this step)
Return a message indicating to the user that the step was completed succesfully or unsucessfuly.
The text was updated successfully, but these errors were encountered: