Git Product home page Git Product logo

oh-auth's Introduction

Oh Auth! ๐Ÿ˜ฌ

We are building a platform to help you keep track of how many issues you open and close each week.

Mockup

Installation instructions

  • Clone the repo
  • Run npm install
  • Add a postgres admin called CREATE USER ohadmin WITH SUPERUSER PASSWORD 'letmein';
  • Add the database CREATE DATABASE ohauth_db OWNER ohadmin;
  • Add a config.env file with the env variables in it (get these from us)
  • Run node src/db_build.js to build the database
  • Run npm start to start the database
  • Go to localhost:4000

Dependencies

  • Hapi
  • Inert
  • Env2
  • Request

Key files

[to be added]

Who, what why

Who

I am a student developer And I want to improve my efficiency and make sure I complete tasks So I can develop good work practices

What

Velocity tracker

  • get a list of issues assigned to a user
  • sort them into open v closed
  • 'in the last week how many issues that are assigned to me have been open vs those that have been opened'

STRETCH GOAL: visualise the data using chart.js

Testing?

  • Server
  • Nightwatch

Why

To learn about OAuth, JWTs and cookies

oh-auth's People

Contributors

denesnori avatar jbesraa avatar lucymonie avatar rhodespeter avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

denesnori

oh-auth's Issues

Inconsistent naming

I love the fact that you have separated your server logic and your database logic, but your naming for the byUserId/getUser/userQuery function is confusing.

I think you should just call the function getUser, the file should be called getUser.js and you should require it in to your server.js file as getUser

Also, it's quite a small point, but I think the signature for this function should be different.

If you look at the examples from the pg module, their functions follow an argument convention with the cb as the last argument.

So instead of having getUser as

const byUserId = (cb, userId) => {

I think it should be

const byUserId = (userId, cb) => {

5.30pm MVP meeting

Can we have a quick check to see where we are and prioritise tasks to get our minimum viable product?

Github id data type

Wouldn't it be better to store these as integer data type, rather than text?

Make request to GitHub API

  • Read GitHub API documentation to find specific queries

  • Find specific information from GitHub API for specific user.

Results.route.js size

There is a lot of good logic inside of this size! Perhaps seperate the callbacks (initial post for access token, post for user info, and jwt-sign) into seperate files and require them in

Set up hapi server

  • Don't create the routes, import a module called 'routes.js' for this
  • Don't start the server, import a module called 'start.js' for this

Create homepage

  • Create a basic homepage that has a button which will redirect to GitHub for you to log in.

  • Add title to page

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.