# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generate
For detailed explanation on how things work, check out Nuxt.js docs.
As an open source project, optiPortal is open to contributions from anyone in the community. We welcome all contributions regardless of type of contribution. This document outlines some practices to ensure consistent contributions to the project.
Reporting issues is a great way to contribute to this project. You can report on issue by emailing [email protected] or by submitting an issue on Github.
Pull requests are the only way to change the project's source code. They are always welcome, even if it's just a typo fix or documentation update. Significant changes should be associated to an existing issue.
-
Fork the optiPortal repository to your own GitHub account and then clone it to your local machine.
-
Run
npm install
oryarn install
to install the dependencies (however we prefer yarn). If dependencies are missing, either delete thenode_modules
folder and install again or locally install missing dependencies. If you are adding a dependency, please useyarn add
. Theyarn.lock
file is the source of truth for all project dependencies.
Before running any tests, make sure all dependencies are met and build all packages:
yarn
yarn build
A good PR has working code but a great PR has working code accompanied with tests. This section contains our test structures and how to add/run your own tests. (STUB - needs expansion)
Verify that your changes pass all tests and build locally. (STUB - needs expansion)
This project uses ESLint to enforce code standards. Please run yarn lint
before committing your changes to verify that the code style is correct. If not, you can use yarn lint --fix
to fix most of the style changes. If there are still errors left, please manually correct them.
If your contribution adds a new feature, refactors or changes project behavior in any manner we ask that you document the changes. Project documentation is located in the docs
directory in the markdown format.
When submitting your PR, there is a series of questions you have to fill out. This helps project maintainers when determining acceptance of your pull request so please fill it out accurately.