Code Monkey home page Code Monkey logo

postman-docs's Introduction

Postman logo

Postman Learning Center

Postman is the collaboration platform for API development. The Postman Learning Center has the resources you need to ramp up quickly and extend your skills with Postman. Postman enables you to write API test cases in any format of your choice (JSON/XML/many more) and run them to verify and validate your API. Moreover, Postman provides collections which can improve a developer's workflow. There are also powerful tools for API-first development, including writing API schemas and generating server code. Postman is available for several platforms including Windows, macOS, and Linux. For more information visit the Postman website.

Contribution guidelines

We would love for you to contribute to the Learning Center! To contribute to this project, please read:

NOTE: We have added a new Markdown linter with GitHub Actions. When making a pull request, it will run against this linter. Your changed files are required to pass linting before they will be merged. More information on this can be found in the contribution guidelines.

To say thank you for your contribution, we’d love to send you exclusive Contributor swag. Fill out the Contributor Submission form and we’ll send you a token of our gratitude.

Build the Learning Center locally

   $ git clone https://github.com/postmanlabs/postman-docs.git
   $ cd postman-docs
   $ npm run nvmrc
   $ nvm use
   $ npm install
   $ npm install -g gatsby-cli
   $ npm run dev

NOTE: this site was built with node v14.15.0. We recommend installing and using nvm and setting your node version to v14.15.0.

Build using Docker

You can build the Learning Center and run it in a Docker container by creating a dockerfile.

  1. Start by cloning the the repository

    git clone https://github.com/postmanlabs/postman-docs.git

  2. Create a file and name it dockerfile with the following contents:

    FROM node:14
    
    EXPOSE 8000
    
    # copy the postman-docs project directory
    COPY postman-docs /var/postman-docs
    
    WORKDIR "/var/postman-docs"
    
    RUN npm install -g gatsby-cli
    RUN npm install --force
    
    CMD ["yarn", "dev", "-H", "0.0.0.0" ]
    

    The dockerfile should be in the same directory as the postman-docs directory

    # example directory structure
    |--[current folder]
       |--postman-docs
       |--dockerfile
    
  3. Build the Docker image with this command:

    $ docker build --tag postman-docs:1.0 .

  4. Start a container using the image

    $ docker run -p 8000:8000 -d postman-docs:1.0

Docker Compose

You can also build with the docker-compose command using the dockerfile above and this docker-compose.yaml

version: '3'
services:
  node:
    build:
      context: ./
    ports:
      - "8000:8000"

The docker-compose.yaml should be in the same directory as the postman-docs directory and dockerfile.

# example directory structure
|--[current folder]
   |--postman-docs
   |--dockerfile
   |--docker-compose.yaml

Start run the container with this command

$ docker-compose up

Project Structure

The built site will only host the most up-to-date docs. All legacy documentation is stored in GitHub and excluded from build.

To update the docs

  • Posts are maintained under the /src/pages/docs folder.

  • The folder structure of /docs is the URL structure for posts. For example, /docs/postman/variables-and-environments/variables.md is mapped to the URL https://learning.postman.com/docs/postman/variables-and-environments/variables/.

  • Links in the docs should be relative. Example:

   [Newman](/docs/postman/collection-runs/command-line-integration-with-newman/)

Resources

License

Apache License 2.0

postman-docs's People

Contributors

btwisted avatar arifpman avatar suesmith avatar jkonrath-postman avatar claireriley avatar ch264 avatar sowmyaraj92 avatar tristandenyer avatar loopdelicious avatar jjgothard avatar jerry-li-dev avatar heatherstenson avatar mark-anthony-postman avatar godfrzero avatar brandonmcastillo avatar 66eli77 avatar ryan-mcbride avatar arlemi avatar numaanashraf avatar pamelagilmour avatar abhijitkane avatar oswish avatar staysea avatar iprithvitharun avatar arnitkun avatar mclausaudio avatar sta-cee avatar fullpoint avatar elispostman avatar kunagpal 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.