Canonn APIv2
The Canonn API v2 (CAPIv2) is a software application designed to handle various science projects. It is currently in active development and testing, with plans to implement multiple sites and track various data metrics. The API documentation is generated automatically and is available for different environments. The current version can be seen at the top of the readme file.
Install Git, Node v12, and NPM v6:
curl -sL https://deb.nodesource.com/setup\_12.x | sudo -E bash -
sudo apt-get install -y nodejs git build-essential libpng-dev
Install PM2 to run as a service:
npm install -g pm2
Install Yarn for development and building:
npm install -g yarn
Setup MariaDB:
Create Database & User for Strapi:
Clone the CAPIv2-Strapi project and setup:
Start CAPIv2 for the first time:
Create the Admin User:
Running CAPIv2 as a service:
The Canonn API v2 (CAPIv2) is a versatile software application designed to handle multiple science projects. It allows users to track various data related to regions, systems, bodies, and more. The installation process involves installing necessary dependencies, setting up the MariaDB database, cloning the project repository, and configuring the application. With its API documentation and auto-generated Swagger docs, users can easily navigate and understand how the API works.
Strapi is an open source headless CMS that provides a customizable content management system and API for your projects. It allows you to manage content in a visual interface and use a REST or GraphQL API to retrieve the data.
ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.