Giter Club home page Giter Club logo

Comments (7)

mg-stripe avatar mg-stripe commented on May 27, 2024

Hey, @MikeThmz, sorry for not replying sooner!

From the README, all you need to configure the backend is the dotenv file (just make sure to include your own Stripe API key):

Copy the example .env file. You'll need to fill out two details:

  • Your Stripe API keys
  • A random 20-character string to keep user authentication secure (using JSON Web Tokens)
cp .env.example .env

Once the environment variables are set, the app should be as easy to start as:

npm run setup
npm start

from stripe-billing-typographic.

MikeThmz avatar MikeThmz commented on May 27, 2024

Thanks @mg-stripe for your response!
Maybe I am missing something on the process (or in my setup). I have copied the .env file and run the npm run setup. Look below the error I got after running the npm run setup:

/Users/myuser/Workspace/stripe-billing-typographic/setup.js:41
  async checkTables() {
        ^^^^^^^^^^^

SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:389:7)
    at startup (bootstrap_node.js:149:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] setup: `node setup.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] setup script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/myuser/.npm/_logs/2018-07-01T12_07_31_717Z-debug.log

Any suggestion here, please?
Thanks!

from stripe-billing-typographic.

mg-stripe avatar mg-stripe commented on May 27, 2024

@MikeThmz: What version of Node are you running? You can check with node -v.

from stripe-billing-typographic.

MikeThmz avatar MikeThmz commented on May 27, 2024

Hi @mg-stripe, version v6.11.3

from stripe-billing-typographic.

mg-stripe avatar mg-stripe commented on May 27, 2024

@MikeThmz: You'll need to update your Node installation to a more recent version (at least Node v8) to run this app. (This is because it uses some modern Node features like async/await.)

from stripe-billing-typographic.

MikeThmz avatar MikeThmz commented on May 27, 2024

Thanks @mg-stripe !
Everything worked fine now. It was my fault. I have downgraded node for another test and forgot.
Appreciate your help here!
You can close the issue.

from stripe-billing-typographic.

mg-stripe avatar mg-stripe commented on May 27, 2024

Glad we sorted everything out! 😄

from stripe-billing-typographic.

Related Issues (11)

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.