Git Product home page Git Product logo

news-api-server's Introduction

Asura News API ☁️

Getting Started 🚀

The Asura News API is written in Dart and uses Dart Frog.

Running Server Locally ☁️💻

To run the server locally, run the following command from the current directory:

dart_frog dev

This will start the server on localhost:8080.

Running in Docker 🐳

To run the server in Docker, make sure you have Docker installed.

First, create a production build via:

dart_frog build

Next, switch directories into the generated build directory.

cd build

Then you can create an image:

docker build -q .

Once you have created an image, you can run the image via:

docker run -d -p 8080:8080 --rm <IMAGE>

To kill the container:

docker kill <CONTAINER>

If you wish to delete an image you can run:

docker rmi <IMAGE>

API Documentation 📚

The service API documentation can be found in docs/api.apib. The documentation uses the API Blueprint specification and can be previewed using the Apiary Client.

Running the Documentation Locally 📚💻

To run the interactive API documentation locally make sure you have the Apiary Client installed:

$ gem install apiaryio

Then use the preview command to run the documentation:

$ apiary preview --path docs/api.apib --watch

The interactive documentation will be available at localhost:8080.

Refer to the Apiary Client Documentation for more information.

Contributing to the API Documentation 🖊️📚

Refer to APIBlueprint.org for documentation and tutorials on using the API Blueprint Specification.

Refer to the API Blueprint Specification for more information.

It is recommended to install the API Elements VSCode Extension to provide syntax highlighting and show errors/warnings when using invalid syntax.

news-api-server's People

Contributors

loveoverflowdev avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.