Question: Create webpages that can do the following: 1. Let a user input name, email address. Post to the server 2. List index of all users

Create webpages that can do the following: 1. Let a user input name, email address. Post to the server

2. List index of all users

3. List information about a particular user

Also,

Build a node/express server to navigate among these pages

Routes can be fixed for now

Use bootstrap, handlebars

Here is what I have so far for my node.js server:

// require our dependencies var express = require('express'); var bodyParser = require('body-parser'); var app = express(); var port = process.env.PORT || 8080;

// use body parser app.use(bodyParser.urlencoded({ extended: true }));

// route our app var router = require('routes'); app.use('/', router);

// set static files (css and images, etc) location app.post('/myaction', function(req, res) { res.send('You sent the name "' + req.body.name + '".'); });

app.listen(8080, function() { console.log('Server running at http://127.0.0.1:8080/'); });

Here is what I have so far for one of my webpages, index.html:

INFX 371 Assignment 1

Please Submit Your Information:

  • Name:

  • Email Address:

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!