Fairfood introduces Trace, a powerful traceability solution system. Trace is a user-friendly, blockchain-based platform that empowers agri-food businesses to establish transparency in their supply chain, allowing them to trace their products seamlessly from farm to fork.
Storytelling, a crucial component of Fairfood's Trace system, plays a pivotal role in tracking and tracing stocks from their origin to their final destination.
StorytellingV2 serves as a vital component within Fairfood's Trace system, facilitating the seamless tracking and tracing of stocks from their point of origin to their ultimate destination.
To contribute to the development of StorytellingV2, ensure you have the following prerequisites installed on your machine:
- NodeJS (version 14.15 or higher)
- Latest version of Angular
To set up the project on your local machine, follow these steps:
-
Clone the repository:
git clone git@git.cied.in:fairfood/trace-v2/frontend/storytelling-v2.git
-
Navigate to the project directory:
cd storytelling-v2
-
Install project dependencies:
npm install
If you encounter any errors related to node-sass, please refer to this link and cross-check the node versions installed on your local machine.
For detailed instructions on setting up the application locally, please refer to the Setup Instructions.
To launch the application locally, run the following command:
ng serve or ng s
To build the application for production, execute the following command:
ng build --c=[environment_name]
Environments can be found in src/environments folder
Run the following command to execute unit tests via Karma:
ng test
To generate and view documentation using Compodoc, use the following scripts:
-
Build documentation:
npm run compodoc:build
-
Build and serve documentation:
npm run compodoc:build-and-serve
-
Serve existing documentation:
npm run compodoc:serve
This project is enabled with lint-staged. Before committing changes, ensure to lint your code using the following command:
npm run lint
Thank you for considering contributing to StorytellingV2! To get started, take a look at our Contribution Guidelines.
Your contributions play a crucial role in advancing Fairfood's mission to revolutionize traceability and transparency in the agri-food industry. Together, we can create a more sustainable and ethical food supply chain for all.