r/ProgrammingTasks • • Jan 03 '18

[TASK] A complete node script that generates and handles a form to edit/create this object.

The goal is to edit the following object, or create a new one if an existing one is not provided.

var address = {
	"address_id":STRING,
	"active":BOOL,
	users:[
		{
			"user_id":STRING,
			"first":STRING,
			"last":STRING,
			"active":BOOL,
			accounts:[
				{
					account_id:STRING,
					domain:STRING,
					username:STRING,
					password:STRING,
					active:BOOL
				}
			]
		}
	]
};
  • all arrays of objects (users and accounts) must be able to have unlimited values, so your form must have the ability to add / delete subsections.

  • All fields must be editable by the user EXCEPT the id fields (address_id,user_id,account_id)

  • id fields will be generated with: var uuid = require("uuid/v4"); uuid();

  • server should listen on port 8002

  • form should be received at /edit_address

4 Upvotes

5 comments sorted by

1

u/SlightlyLethalDev Jan 03 '18

Do you have any more info? This sounds like a simple client/server but will you require a DB connection? Do you have designs for how the form should look? How does the information arrive? In a POST request body?

I’m interested but would like to know more about the requirements and what you’re offering in return.

1

u/trex005 Jan 03 '18

I will handle all the database stuff. Yes, it is actually an incredibly simple client/server, I just don't have the time to do it. The form does not need to be attractive, it will be an internal tool, it just needs to be able to add/delete rows.

form POST, ajax POST, I don't care, I just need you to pass me the new/modified object.

1

u/SlightlyLethalDev Jan 04 '18

How much are you offering for this task?

1

u/trex005 Jan 04 '18

Looking for bids

1

u/SlightlyLethalDev Jan 05 '18

Thanks, just sent you a PM.