Git Product home page Git Product logo

easycopy's Introduction

.env file DB_STRING=postgresql://localhost SALT='forthworthsalt' ENCRYPTION_KEY='justTesting' RECAPTCHA_SECRET='' SENDGRID_API_KEY='' STRIPE_KEY='' SENTRY_DSN='' DB_SSL_OFF=true DB_SYNC=false DEBUG=true

easycopy's People

Contributors

luojxxx avatar

Watchers

 avatar

easycopy's Issues

Fix "Cannot set headers after they are sent to the client"

POST /checkUser 500 2.277 ms - 12
Error [ERR_HTTP_HEADERS_SENT]: Cannot set headers after they are sent to the client
at ServerResponse.setHeader (_http_outgoing.js:536:11)
at ServerResponse.header (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/response.js:767:10)
at ServerResponse.send (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/response.js:170:12)
at ServerResponse.json (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/response.js:267:15)
at /Users/jingluo/GitHub/easycopy/src/app.js:99:7
at Layer.handle_error (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/router/layer.js:71:5)
at trim_prefix (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/router/index.js:315:13)
at /Users/jingluo/GitHub/easycopy/node_modules/express/lib/router/index.js:284:7
at Function.process_params (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/router/index.js:335:12)
at next (/Users/jingluo/GitHub/easycopy/node_modules/express/lib/router/index.js:275:10)

Patch DB issues

  • remove subscribed column from Users
  • add not null for email for ResetPasswordTokens
  • replace emailVerified
  • add unique constraint to tokens or change tokens to primary key for token tables
  • add unique constraint to userId and email fields for token tables

Add caching layer

Help with read throughput, in case someone popular shares something using it. Expiration 1 hour

Fix recaptcha integration

  • Create table for recaptcha random-generated tokens
  • verifyrecaptcha route generates a random-generated string, saves it in the table, and upon successful call to recaptcha services sends the string back to frontend
  • frontend passes token along with createUrl when the token matches one in table it is consumed, and url is generated

Fix settings page style

  • Scroll should be only if there's not enough space
  • Center settings
  • Improve separation between settings

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.