Giter Site home page Giter Site logo

yhnavein / express-starter Goto Github PK

View Code? Open in Web Editor NEW
209.0 19.0 55.0 7.31 MB

It's a hackathon-starter fork, but designed to use PostgreSQL by default (or MySQL)

License: MIT License

JavaScript 40.46% CSS 38.25% HTML 21.29%
javascript nodejs express postgresql sequelize orm relational-databases oauth oauth2 apis

express-starter's People

Contributors

abimaelmartell avatar ammit avatar bencxr avatar blister avatar c0dr avatar dmamills avatar dstroot avatar gavruk avatar generalzero avatar isruslan avatar jromer94 avatar karljakober avatar kusold avatar larsonjj avatar peterblazejewicz avatar raidok avatar robjohnson189 avatar rosswilson avatar rstormsf avatar sahat avatar saveman71 avatar shivateja avatar sixfingers avatar soichih avatar svisser avatar tmcpro avatar westonplatter avatar xasos avatar yhnavein avatar zonetti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

express-starter's Issues

How to change postgresql db port?

Well, first of all let me thank you for the work you done on this starter kit.
As front-end developer coming to back-end, the user management seemed like too complicated thing: user creation, login through FB, change password, verify by email. All this things are very difficult to get your head around.

I have a problem starting application.

Unhandled rejection SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:5432

This means that there is no database on this port. Problem is i cannot create db with this port config. And there seems to be nothing blocking port :5432, i checked as hard as i could.

How can i change it to :5433 or something else?

error in less

hi ,
i installed and configured but app ,return this error
500 Error: Invalid mapping: {"generated":{"line":487,"column":2},"source":"/Users/Amin/expg/public/css/vendor/bootstrap/type.less","original":{"line":1,"column":null},"name":null}

no such file or directory, open '.env'

I updated the secrets file with my postgres credentials.

However, I get a warning when starting up the app. Any ideas? It works.

{ Error: ENOENT: no such file or directory, open '.env'
    at Object.fs.openSync (fs.js:583:18)
    at Object.fs.readFileSync (fs.js:490:33)
    at Object.config (/Users/pavankatepalli/Desktop/git/node/mine/cryptofigure/node_modules/dotenv/lib/main.js:30:37)
    at Object.<anonymous> (/Users/pavankatepalli/Desktop/git/node/mine/cryptofigure/app.js:7:19)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.runMain (module.js:605:10) errno: -2, code: 'ENOENT', syscall: 'open', path: '.env' }

Progress before v1.0

Just a one big task with list of all necessary improvements and fixes to be done before v1.0

  • Rewrite Jade to EJS
  • Remove existing assets and introduce bower
  • Add console app for adjusting whole application (choosing auth providers and apis)
  • Adding a SPA as a new subset application (with Angular.JS)
  • Add possibility to choose a DB system in console app
  • Add encoding of the user tokens field in the database. It is actually quite sensitive information stored there. It can't be hashed because it's necessary to retrieve it from time to time.

CSRF Token missing in POST

React front end, trying to post to the server side, however I get a Error: CSRF token missing

import Cookies from 'js-cookie';
....
        const xsrfCookie = Cookies.get('XSRF-TOKEN');
        const headers = new Headers({
            'XSRF-TOKEN': xsrfCookie,
            '_csrf': xsrfCookie,
        });

        console.log("formdata",formData)
        const res = await fetch('/postAttempts', {
            method: 'POST',
            headers,
            credentials: 'include',
            body: JSON.stringify(formData),
        })

From the controller

exports.postAttempts = function(req, res) {
  console.log(req);
  console.log(req.body);

  res.json({data: 'hi'});
};

Am I incorrectly pulling the csrf token?

Improve linking accounts functionality

There are 2 things to be improved in this matter:

  • add some warning flag for user to fill his e-mail address, when e-mail address was generated by us (in case there was no e-mail data returned from OAuth provider)
  • there should be better handler for linking 2 existing accounts (let's imagine Acc A, with Google Token and Acc B, without one. When we try to link Acc B to the same Google Account, then we will have error. This error should be improved)

sign up issue

upon signing up with facebook, it forces a linkedin auth connection.

Basically it's doing both.

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.