/apiannie

Primary LanguageTypeScriptApache License 2.0Apache-2.0

ApiAnnie

A lightweight web tool for API documentation and development

ℹ️ Api Annie is currently still in pre-release mode.ℹ️

Api Annie helps your team to co-ordinate easier when developing a product which needs API comunication, by going through the following steps:

  1. [Define] Define your API structure.
  2. [Mock] Frontend developer makes their prototype by using the mock server automatically generated by Api Annie.
  3. [Execute] Backend developer builds the backend services and test it by sending requests through Api Annie
  4. [Integrate] When both frontend and backend development are finished, let frontend switch communication from Api Annie to your backend server URL.

Installation

Cloud service

We recommend using our cloud service, where you can always get access to the latest features.

Manual installation

If you prefer deploying Api Annie in your own machine, run:

git clone git@github.com:apiannie/apiannie.git

cd apiannie

Then create a file named .env, which should contain the following environment variables:

DATABASE_URL="mongodb+srv://USERNAME:PASSWORD@HOST/DATABASE"
SESSION_SECRET="replace-it-by-random-string"

For more info about connection to MongoDB, please refer to this doc from Prisma

Then install dependency packages, and initalize database:

npm install
npx prisma db push

or if you are using yarn

yarn install
yarn prisma db push

Up to now, you have your environment successfully setup, to run Api Annie in dev mode:

npm run dev or yarn dev

To run in release mode:

npm run build
npm start

or if you are using yarn

yarn build
yarn start

Tech stack

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.