Comments (7)
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.
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.
@MikeThmz: What version of Node are you running? You can check with node -v
.
from stripe-billing-typographic.
Hi @mg-stripe, version v6.11.3
from stripe-billing-typographic.
@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.
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.
Glad we sorted everything out! 😄
from stripe-billing-typographic.
Related Issues (11)
- "Account" page blank, errors fill console HOT 2
- Server error on login HOT 2
- Problem with npm start / npm run build - bundle.js missing HOT 1
- [Feature request] Example with 3DSecure 2 & Payment intent HOT 1
- Subscription prices accumulate HOT 4
- rollup.config.js node 10
- Cloned the latest from this repo, running on node 12.18.2, blank screen on load HOT 1
- wrong bill estimate
- Can't find the Bundle.js file HOT 4
- Signup / Login doesn't work with PostgreSQL HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-billing-typographic.