Skip to content

Latest commit

 

History

History
60 lines (35 loc) · 3.74 KB

README.md

File metadata and controls

60 lines (35 loc) · 3.74 KB

Travis (.org) branch GitHub code style: prettier

Building the Seller (Admin) App

  1. If you have not before, install the Angular CLI globally on your machine with npm install -g @angular/cli

  2. Navigate to the Seller Directory with cd src/UI/Seller

  3. Install dependencies with npm install

  4. Enter your seller organization's clientID in environment.ts (src/UI/Seller/src/environments/environment.ts)

  5. Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Other Useful Commands

  • Run ng test --sourceMap="false" from the root of the buyer or seller app to run unit tests.

  • Run ng build from the root of the buyer or seller app to compile the project without serving.

  • Run ng generate component component-name from any directory to generate code scafolding for a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module.

Be sure to check out the Angular CLI docs for a full list of commands

Auto-formatter

We use a tool to auto-format code before each commit, which lets us enforce consistency in formatting. Check out the configuration file for more info on which files are formatted and formatting options.

If you use vscode we recommend installing the vscode extensions for prettier, beautify, and tslint so that you can enable the same auto-formatting on save instead of on commit.

If you want to turn this feature off completely please refer to this commit (which introduces auto-formatting) for insight on what to undo.

Contributing

We welcomes all contributions from anyone willing to work in good faith with other contributors and the community. No contribution is too small and all contributions are valued.

Writing code may be the first thing that comes to mind when you think of contributing but there are so many different ways you can contribute even if you can't write a single line of code! Here are just a few:

  • create an issue for bugs you find
  • create an issue for possible enhancements
  • write documentation
  • improve current documentation

Issues are the primary means by which bug reports and general discussion are made. Please be sure to open an issue before you write any code with a detailed description of your problem or proposed enhancement. We may already be on our way to delivering what you want!

After you've opened an issue, received the green light to start coding, and have some code you'd like to contribute then you're ready to submit a pull request. We follow the "fork-and-pull" Git workflow.

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

Happy contributing!

Getting Help

If you need any assistance getting set up please create a detailed github issue of what you are having trouble with and what you've tried to fix it.