muneebshahid / zilla-frontend

A platform to connect buyers and sellers at the local level

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How To Run

To run the project. Perform the following steps.

  • cd frontend
  • Run npm install
  • npm install will install angular locally. Therefore add /frontend/nodemodules/.bin to PATH like so
export PATH="$PATH:/frontend/node_modules/.bin/"
  • Run ng serve

Before starting Development.

Code Styleguide

  • Install VSCode prettier extension to start using it.
  • Do npm i to install the prettier package.
  • Enable “editor.formatOnSave”: true in VS Code.
  • If it still doesn't work, check this blog.

Code scaffolding

Run ng generate component component-name to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

Running end-to-end tests

Run ng e2e to execute the end-to-end tests via Protractor.

Further help

To get more help on the Angular CLI use ng help or go check out the Angular CLI README.

About

A platform to connect buyers and sellers at the local level


Languages

Language:CSS 47.9%Language:TypeScript 28.2%Language:HTML 16.2%Language:JavaScript 7.7%Language:Dockerfile 0.0%Language:Shell 0.0%