Giter VIP home page Giter VIP logo

adambutler / nexmo-developer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jerryseigle/nexmo-developer

1.0 2.0 0.0 14.91 MB

Provides resources for developers using Nexmo API platforms

Home Page: https://developer.nexmo.com

License: MIT License

Shell 0.72% C# 4.94% CSS 10.25% ASP 0.02% HTML 10.08% JavaScript 43.66% Java 3.75% PHP 0.20% Python 0.24% Ruby 26.15% CoffeeScript 0.01%

nexmo-developer's Introduction

Nexmo Developer

Nexmo Developer is a platform hosting the Nexmo documentation, API reference, SDKs, Tools & Community content.

Prerequisites

  • Ruby 2.4.1 + bundler
  • PostgreSQL
  • Yarn

Setup

$ git clone [email protected]:Nexmo/nexmo-developer.git
$ cd nexmo-developer
$ cp .env.example .env
$ bundle install
$ rake db:create
$ rake db:migrate
$ ./bin/yarn install
$ rails s

You should now be able to see the site on http://localhost:3000/

Setting up with Docker

If you don't want to install Ruby & PostgreSQL then you can use docker to sandbox Nexmo Developer into its own containers. After you Install Docker run the following:

# Start the web server
$ docker-compose up

# Setup the Database (you only need to do this once)
$ docker-compose run web rake db:setup

# Open the browser
$ open http://localhost:3000

To stop the server cleanly run:

$ docker-compose down

Features

  • A powerful markup engine with pipeline (see this blog post for details on how this works).
  • Automatically generated navigation based on the contents of _documentation.
  • Turbolinks for progressively loading content into for a seamless user experience.

Future Features

  • Dynamic content for community section
  • Interactive examples of the Nexmo APIs

Pulling in code from other repos

Some examples require code from repos such as nexmo-community/nexmo-ruby-quickstart these repos can be defined in config/repos.yml as such:

nexmo-community/nexmo-ruby-quickstart: 'master'

The code can then be pulled into the .repo directory with the following command:

$ rake repos:pull

To pull a single repo provide the GitHub repo name and optional branch:

$ rake repos:pull nexmo-community/nexmo-ruby-quickstart master

Pre-Commit hooks

This repository uses Yelp's Pre-Commit framework for managing shared pre-commit hooks.

These include checks to ensure syntactic validity of XML, JSON and YAML files, as well as unfinished merge conflicts and case conflicts in filenames.

This is optional. See the pre-commit website for installation instructions.

Troubleshooting

I'm getting an error A server is already running. Check /myapp/tmp/pids/server.pid. when I run docker-compose up.

This is because Docker wasn't shut down cleanly. To fix this run:

$ docker-compose run web rm /myapp/tmp/pids/server.pid

I get an exception PG::ConnectionBad - could not connect to server: Connection refused when I try to run the app.

This error indicates that PostgreSQL is not running. If you installed PostgreSQL using brew you can get information about how to start it by running:

$ brew info postgresql

Once PostgreSQL is running you'll need to create and migrate the database. See Setup for instructions.

Contributing

Contributions are welcome, please follow GitHub Flow

License

The content of this project itself is licensed under the Creative Commons Attribution 4.0 International license, and the underlying source code used to format and display that content is licensed under the MIT license.

nexmo-developer's People

Contributors

adambutler avatar tommorris avatar leggetter avatar sammachin avatar bennyz28 avatar chrisguzman avatar judy2k avatar mheap avatar alexlakatos avatar cbetta avatar solarbear avatar dsdenes avatar jamiechapman8462 avatar averagemarcus avatar ralph-dev avatar sidsharma27 avatar timcraft avatar ecarrollc avatar hughhopkins avatar jonlingard avatar

Stargazers

Tony Bedford avatar

Watchers

James Cloos avatar  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.