@stacc/services-ambita-realty
TypeScript icon, indicating that this package has built-in type declarations

2.6.14 • Public • Published

Stacc Ambita Realty Proxy API

An API that proxies the Ambita Realty API

Requirements

To run and try out this API locally, a .env file must be included with the correct credentials:

API_URL=<API_URL>
AUTH_URL=<AUTH_URL
AMBITA_CLIENT_ID=<AMBITA_CLIENT_ID>
AMBITA_CLIENT_SECRET=<AMBITA_CLIENT_SECRET>
AMBITA_USERNAME=<AMBITA_USERNAME>
AMBITA_PASSWORD=<AMBITA_PASSWORD>

After this is setup, run the following command at the project's root:

$ npm install && npm run dev

Try out the API locally with REST client (Visual Studio Code)

  1. Install a REST client for your IDE
  2. Add a settings.json file to your .vscode folder and include the following:
    {
        "rest-client.environmentVariables": {
            "$shared":{
                "nin1": "<enter your nin here>",
                "nin2": "<enter your nin here>"
            },
            "local": {
            },
            "production": {
            }
        }
    }
    
    • !! Always make sure to not commit sensitive personal data to the VCS !!
  3. $ npm run dev
  4. You should now be abvle to run the requests in the src/requests folder.

For other IDE's, follow the documentation and makes sure to .gitignore any files containing sensitive information:

/@stacc/services-ambita-realty/

    Package Sidebar

    Install

    npm i @stacc/services-ambita-realty

    Weekly Downloads

    34

    Version

    2.6.14

    License

    MIT

    Unpacked Size

    67.5 kB

    Total Files

    28

    Last publish

    Collaborators

    • karolined
    • gawdfrey
    • bjarnehelland
    • robingrundvag
    • anderseidestacc
    • oyvindfanebust
    • slem