Giter Club home page Giter Club logo

wwcode_api's Introduction

WomenWhoCode API

#About This is the API for the WomenWhoCode web app. It works in conjunction with the web client app, which you can find here.

This API is a REST API built with Ruby on Rails. Currently, return format for all endpoints is JSON.

#Installation

  1. Fork the GitHub repository and clone the fork to your local environment
  2. Create a remote to the upstream repository: git remote add upstream [email protected]:WomenWhoCode/wwcode_api.git
  3. Copy the file config/database.yml.example to config/database.yml and update the username and password in the development and test environments to match your Postgres installation

#Contributing and developing a feature

  1. Make sure you are in the master branch: git checkout master
  2. Sync your copy: git fetch upstream then git merge upstream/master
  3. Create a new branch with a meaningful name: git checkout -b branch_name
  4. Develop your feature on your branch
  5. Add the files you changed: git add file_name (avoid using git add .)
  6. Commit your changes: git commit -m "Message briefly explaining the feature"
  7. We have small Pull Requests; try to keep one commit per feature.
  8. Push to your fork: git push origin branch_name
  9. Go into the wwcode_api GitHub repo and create a pull request explaining your changes. Please include one of the special keywords in either your commit message or your pull request that will automatically close your issue once your pull request is accepted. See closing an issue via a commit or closing an issue via a pull request for examples.

#Models The following are models created:

  • Event
  • Network
  • Personalization Answer
  • Personalization Detail
  • Personalization Question
  • Post
  • Profile
  • Reply
  • Subscribe
  • User
  • User Access Code

As of 03/2016, endpoints are set up with User, Profile, and Event.

#Cross Origin Requests The app is setup to only allow cross origin requests with the following domains: 'localhost:3000', 'staging-wwcode-client.herokuapp.com/', 'staging-wwcode-api.herokuapp.com/', 'production-wwcode-api.herokuapp.com/', 'production-wwcode-client.herokuapp.com/'

If another domain must be added, you can add it to config/application.rb and add it as an origin under config.middleware.use Rack::Cors do.

#Known Bugs Validation with the access code upon sign up does not generate the correct error yet.

wwcode_api's People

Contributors

hbotelloelaine avatar timchai avatar zassmin avatar littleforest avatar levans248 avatar markeban 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.