Code Monkey home page Code Monkey logo

assignment's Introduction

COMP3104 Assignment Project

This repository contains the base project we will be using for our assignment.

To get the project up and running please ensure you have the following installed on your machine:

  1. Git
  2. Node & NPM

Once it's been determined that you have the pre-requisites to install the application, please see the scripts block below taken from the package.json which shows how to build and start the application.

"scripts": {
  "format": "prettier \"src/**/*.{js,html}\" --write",
  "lint": "eslint \"src/**/*.{js,jsx}\" --quiet",
  "test": "npm run format && npm run lint",
  "start": "webpack-dev-server --mode development --open",
  "dev": "webpack --mode development --module-bind js=babel-loader",
  "build": "webpack --mode production --module-bind js=babel-loader",
  "mock:api": "./node_modules/.bin/json-server --watch ./src/js/services/api/mockDb.json --port 4000 & npm run start"
}

In the above, you'll notice a "scripts" object. Inside this object contains some commands: format, lint, test, start,dev and build.

Before the application can be started, we must first install the projects dependencies. This is done by running npm install from the command line, in the project directory.

After the dependencies are installed, you can run npm run build; notice the build key. This will produce a production ready build of the application.

npm run start will then start a local development server and the application will be hosted on port 8080.

After the application is started, you should be able to request localhost:8080 to see the application.

assignment's People

Contributors

sparksflyupwards avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.