DanyDin1801 / Product-Portal

0 stars 2 forks source link

Product-Portal

Project Details

How do we complete this project?

Ver 0.1 :

Ver 0.2 (will be updated shortly)

Ver 1.0 (will be updated soon)

Mockup:

Mockup

Installation

This project will mostly be done in plain JavaScript. However, we'll need some help along the way. Writing tests is already hard enough, let's not try to write them without frameworks. For writing unit tests, we'll use Karma and Jasmine.

This can easily be done by first installing the latest version of NodeJS. Once you have installed it, you can verify it is correctly installed by running

node -v

You should now see the version of your current Node installation.

Now you can install the necessary dependencies for the project with

npm install

This command will install all the dependencies listed in package.json.

To run local server, run

node server.js

or

npm start

The default server is http://localhost:3000.

You are now ready to go!

Run tests

JavaScript tests are written with the Jasmine syntax. This syntax provides tests that are easy to and maintain.

Running karma tests can be done with

npm test

This activates a script that is set in the package.json file to run Karma and load your JavaScript test files.