Skip to content

nesuh/Authomation_Tender_Perparation

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation

$ npm install

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

Test

# unit tests
$ npm run test

# e2e tests
$ npm run test:e2e

# test coverage
$ npm run test:cov

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

                       Tender Preparation Automation

This project automates the tender preparation process by generating and submitting data for various tender-related stages including general information, preparation details, submission, evaluation, and award. The project uses NestJS, Axios for HTTP requests, and Faker.js for generating random data. _=I work in perago Information System for malawai Tender perpartion these is my Own Task

    Table of Contents

Project Structure Setup Environment Variables Usage Error Handling API Endpoints License Project Structure

├── src │ ├── bidding.service.ts # Main service for the bidding process │ ├── app.module.ts # NestJS module configuration │ ├── main.ts # Entry point for the application ├── .env # Environment variables ├── README.md # Project documentation └── package.json # Node.js dependencies and scripts

Here's a README.md file tailored for your tender preparation automation project:

Tender Preparation Automation This project automates the tender preparation process by generating and submitting data for various tender-related stages including general information, preparation details, submission, evaluation, and award. The project uses NestJS, Axios for HTTP requests, and Faker.js for generating random data.

Table of Contents Project Structure Setup Environment Variables Usage Error Handling API Endpoints License Project Structure bash Copy code ├── src │ ├── bidding.service.ts # Main service for the bidding process │ ├── app.module.ts # NestJS module configuration │ ├── main.ts # Entry point for the application ├── .env # Environment variables ├── README.md # Project documentation └── package.json # Node.js dependencies and scripts Setup Clone the repository:

bash Copy code git clone https://github.com/yourusername/tender-preparation-automation.git cd tender-preparation-automation Install dependencies:

bash Copy code npm install Set up environment variables:

Create a .env file in the root directory and add the required environment variables (see Environment Variables).

Run the application:

bash Copy code npm run start Environment Variables This project uses environment variables for configuration. Add the following variables to your .env file:

makefile Copy code WEB_TOKEN=your_jwt_token_here WEB_TOKEN: Your JWT token for API authentication. Usage The project is structured to automate the tender preparation process by making HTTP POST requests to various API endpoints.

  Example Usage

The main service responsible for this process is BiddingService. It handles the following steps:

1.General Information (bds-generals) 2.Preparation Details (bds-preparations) 3.Submission Details (bds-submissions) 4.Evaluation Criteria (bds-evaluations) 5. Award Information (bds-awards)

  Error Handling

This project includes basic error handling for Axios requests. Common errors and their solutions:

504 Gateway Timeout: Indicates that the server took too long to respond. Check the server status or increase the timeout settings. 400 Bad Request: Often caused by duplicate key values (e.g., trying to insert a tenderId that already exists).

API Endpoints The service interacts with the following API endpoints:

General Information: https://dev-bo.megp.peragosystems.com/tendering/api/bds-generals Preparation Details: https://dev-bo.megp.peragosystems.com/tendering/api/bds-preparations Submission Details: https://dev-bo.megp.peragosystems.com/tendering/api/bds-submissions Evaluation Criteria: https://dev-bo.megp.peragosystems.com/tendering/api/bds-evaluations Award Information: https://dev-bo.megp.peragosystems.com/tendering/api/bds-awards and so on api ....

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published