OI-wiki / api

A collection of public APIs

Home Page:https://api-theta-azure.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API.oi-wiki.org

A collection of public APIs maintained by the OI Wiki Team.

Installation

Clone the repository

npm install 

For development:

npm run dev

To start:

npm run start

To debug in visual studio code:

npm run debug

Then run the launch.json configuration inside visual studio code f5. You should now be able to set breakpoints in your typescript.

Test

npm run test

Test Watch

npm run test:watch

Build to ./dist

npm run build

Browse to http://localhost:3000

Folder structure

|-- Dockerfile 
|-- README.md 
|-- package.json
|-- spec
|   -- index.spec.ts
|-- src
|   |-- config
|   |   -- config.ts
|   |   -- express.ts
|   |-- controllers
|   |   -- index.server.controller.ts
|   |-- index.ts
|   |-- public
|   |   -- stylesheets
|   |       -- style.css
|   |-- routes
|   |   -- index.server.route.ts
|   |-- tsconfig.json
|   -- views
|       -- error.jade
|       -- index.jade
|       -- layout.jade
-- tsconfig.json

Docker

Build the image sudo docker build -t xxx/xxx .

Run the image docker-compose up

Open http://localhost:8080

License

MIT

About

A collection of public APIs

https://api-theta-azure.now.sh

License:MIT License


Languages

Language:TypeScript 91.6%Language:Pug 4.3%Language:Dockerfile 2.7%Language:CSS 1.4%