Skip to content

ishendywebdeveloper/nodejs-test

 
 

Repository files navigation

A Node.js service built as a test task for http://iotblue.net/

You can run locally on your machine by following these steps:

You need to have Node.js and MongoDB installed.

Clone this repository

git clone https://github.com/ishendyweb/nodejs-test test-task
cd test-task

Install dependencies

npm install

Add sample products

node seed/product-seeder.js

Start NodeJS server at http://localhost:3000 (./bin/www)

npm start

- The first user you sign up for will be considered Administrator.

- Other signups will always be Customers.


To change database configurations:

  • Two files:
  1. app.js:
mongoose.connect('mongodb://localhost:27017/shopping', {
	useMongoClient: true,
	/* other options */
});
  1. seed/product-seeder.js:
mongoose.connect('mongodb://localhost:27017/shopping', {
	useMongoClient: true,
	/* other options */
});

About

A Node.js service built as a test task for http://iotblue.net/

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 57.2%
  • HTML 42.3%
  • CSS 0.5%