Skip to content

ncc-erp/metasign

Repository files navigation

Metasign

Overview

Metasign is an e-contract solution to bring businesses and individuals a superior experience when engaging in contracts, and optimizing operation and management systems.

Metasign can serve a wide range of customers' needs:

  • Creating different types of contracts easily
  • Delivering and getting back completed contracts via online channels
  • Storing, tracking, and managing contracts in a more convenient manner
  • Generating reports
  • Creating contracts in a batch

High level design

navbar

Table of Contents

Getting Started

Prerequisites

Before you begin, ensure you have met the following requirements:

Clone project

  1. Create a folder to store the backend and frontend code.
  • example: folder metasign
  1. Open a command prompt in the created folder.

  2. Clone the backend repository using the following command:

git clone https://github.com/ncc-erp/metasign.git

Backend Setup

  1. Open the backend solution using Visual Studio 2022:
  • Launch Visual Studio 2022.

  • Select File > Open > Project/Solution.

  • Navigate to the backend folder within created folder metasign and open the solution file.

  1. Restore NuGet packages:
  • In Solution Explorer, right-click the solution and select Restore NuGet Packages.
  1. Set the startup project:
  • Navigate to the path aspnet-core/src/EC.Web.Host then right-click metasign.Web.Host in Solution Explorer.

Select Set as StartUp Project.

  1. Update the appsettings.json file:
  • Open the appsettings.json file in the backend project.

  • Locate the ConnectionStrings section.

  • Update the Default connection string to match your local database information:

{
"ConnectionStrings":  {
"Default":  "Host=localhost;Port=5432;Database=metasign;User ID=yourUID;Password=yourPW;Pooling=true;"
},
// ... other settings ...
}
  1. Generate your own local database :
  • Go to the path Tools > NuGet Package Manager> Package Manager Console
  • Change Default project with src/EC.Web.Host
  • Run terminal
Update-database
  • Open sql server, you can see new created database.
  • Press F5 or select Debug > Start Debugging to run the backend.
  • Press Ctrl + f5 or select Debug > Start without Debugging to run the backend without debug Default port backend: http://localhost:44311/

Frontend Setup

  1. Open Front-end repository
  • Select metasign folder > ncc-erp-metasign > angular
  • open code
code .
  1. Install Angular CLI globally:
npm install -g @angular/cli
  1. Install frontend dependencies:
npm install 
  1. Run front-end
npm start

Building

To build the project, follow these steps: 1.Build the backend using Visual Studio Code or the command line. 2.Build the frontend:

npm run build

Running

To run the project, use these commands:

  1. Start the backend using Visual Studio Code or the command line.

  2. Start the frontend:

npm start

Screenshot Tutorial

Check out our screenshot tutorial on how to use metasign: navbar navbar navbar