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
Before you begin, ensure you have met the following requirements:
-
Visual Studio 2022 installed.
-
.NET 6 SDK or ASP.NET Core RunTime installed.
-
Visual Studio Code installed.
-
Node.js 14.21.2 and npm (Node.js Package Manager) installed.
-
PostgresSQL installed.
- Create a folder to store the backend and frontend code.
- example: folder
metasign
-
Open a command prompt in the created folder.
-
Clone the backend repository using the following command:
git clone https://github.com/ncc-erp/metasign.git
- 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.
- Restore NuGet packages:
- In Solution Explorer, right-click the solution and select Restore NuGet Packages.
- Set the startup project:
- Navigate to the path
aspnet-core/src/EC.Web.Host
then right-clickmetasign.Web.Host
inSolution Explorer
.
Select Set as StartUp Project.
- 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 ...
}
- Generate your own local database :
- Go to the path
Tools
>NuGet Package Manager
>Package Manager Console
- Change
Default project
withsrc/EC.Web.Host
- Run terminal
Update-database
- Open sql server, you can see new created database.
- Press
F5
or selectDebug
>Start Debugging
to run the backend. - Press
Ctrl + f5
or selectDebug
>Start without Debugging
to run the backend without debug Default port backend:http://localhost:44311/
- Open Front-end repository
- Select
metasign
folder >ncc-erp-metasign
>angular
- open code
code .
- Install Angular CLI globally:
npm install -g @angular/cli
- Install frontend dependencies:
npm install
- Run front-end
npm start
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
To run the project, use these commands:
-
Start the backend using
Visual Studio Code
or thecommand line
. -
Start the frontend:
npm start