Giter Club home page Giter Club logo

postgres-oauth-example's Introduction

#Postgres Oauth example A demonstration of postgres oauth in node. Heavily follows this guide from scotch.io, except I use postgres in place of Mongo for the database, and Jade in place of EJS for the html views.

Server-side Setup

This app requires a basic postgres setup. It also requires a lot of private Oauth application setup from Facebook, Twitter, and Google involving developer access to their Oauth services. This involves filling in config.js.

  1. Git clone
  2. Make sure you have postgres set up with user postgres with password postgres. So create the user with that password. To use another user, change the knex connection config in the code.
  3. postgres user should have createdb priviledges. To do so: ALTER USER postgres createdb in psql.
  4. Run the psql_script.sql script into postgres. Try using psql -U postgres -a -f psql_script.sql.
  5. Rename sample_config.js to config.js.
  6. Fill in config.js file with appropriate dev API access tokens. scotch.io has some great guides on how to do this.

postgres-oauth-example's People

Contributors

paoyong avatar mqchau avatar

Stargazers

robert howton avatar jen chan avatar Kaska Miskolczi avatar Kakam avatar GAURAV avatar Stephen Grable avatar Paramanantham Harrison avatar  avatar  avatar Signo 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.