yoonic / atlas

E-Commerce Backend API in Hapi.js and RethinkDB
MIT License
373 stars 104 forks source link

Can't run app #9

Closed phoenixvk closed 7 years ago

phoenixvk commented 7 years ago

`phoenix@phoenix:~/Downloads/atlas-master$ sudo npm run dev [sudo] password for phoenix:

atlas@1.0.0 dev /home/phoenix/Downloads/atlas-master NODE_ENV=development nodemon index | bunyan

[nodemon] 1.9.1 [nodemon] to restart at any time, enter rs [nodemon] watching: . [nodemon] starting node index index.js module.js:471 throw err; ^

Error: Cannot find module 'bcrypt' at Function.Module._resolveFilename (module.js:469:15) at Function.Module._load (module.js:417:25) at Module.require (module.js:497:17) at require (internal/module.js:20:19) at Object. (/home/phoenix/Downloads/atlas-master/src/resources/carts/models.js:16:15) at Module._compile (module.js:570:32) at normalLoader (/home/phoenix/Downloads/atlas-master/node_modules/babel-core/lib/api/register/node.js:199:5) at Object.require.extensions.(anonymous function) [as .js] (/home/phoenix/Downloads/atlas-master/node_modules/babel-core/lib/api/register/node.js:216:7) at Module.load (module.js:487:32) at tryModuleLoad (module.js:446:12) [nodemon] app crashed - waiting for file changes before starting...`

GOT this error on run dev on my ubuntu.

phoenixvk commented 7 years ago

My bad i ve not done all the configuration. This is really very amazing project.

andrecrt commented 7 years ago

Thanks for the feedback! Looking forward to seeing your projects using it :)

phoenixvk commented 7 years ago

@andreftavares will you tell me how should I Integrate other payment gateway such as PAYTM(Which is popular in my country)? Give me just overview. I'll implement it.

mateomorrison commented 7 years ago

@phoenixvk Would love to learn (yea, starting up) how to implement Stripe with Nicistore and Atlas after @andreftavares tells you how.

Shoot me an email at mateomorrison [at] gmail.com

mateomorrison commented 7 years ago

@phoenixvk Also, what do you recommend when translating? Adding [lang] after every [en] and [pt] variable?

Also... How to make that when someone access http://.com/ it takes to the actual "/" instead of "en" or "pt"? @andreftavares A comment on both will be appreciated!

andrecrt commented 7 years ago

Other payment gateways

The integration with Switch Payments is very simple and takes place in just three places, 1 in Atlas and 2 in Nicistore:

Of course this is just possible because of the very simple and unified API from Switch. I'm not proficient on other gateways and their flows. For example, with Switch this unique flow serves are payment methods (not only Credit Cards, but others you may have available)... you can try and fit other integrations following this flow and in these places or add any necessary code elsewhere.

Root URL "/"

You can't. Because it's built in the app the concept that the second param after that is the language.

mateomorrison commented 7 years ago

To change Switch (don't get me wrong, amazing idea just not working worldwide, like PayPal or charging in all currencies like Stripe. Turning Switch into a gateway that connects all your integrations in just one would be great.) to Stripe (their docs and API is very cool too) I need to change every request to what? It's confusing, I'll just get a developer for that. Thanks by the way @andreftavares

About Root URL I don't want to use pt language, deleting it will cause a fatal error. However just keeping /en should do the work, but I don't want the users to know there is another language. So any way to change, and when customers go in the web, it's just global / not /en or /pt?

phoenixvk commented 7 years ago

How and where should I use this http://paywithpaytm.com/developer/paytm_api_doc?target=transaction-request-api gracefully?

phoenixvk commented 7 years ago

I'm integrating PAYTM paytm gateway in NICISTORE and ATLAS.

mateomorrison commented 7 years ago

Just follow the links where Swift is integrated and use their API REST to do the same in the same folders. You can try to contact Paytm support and they will help you so how

El El sáb, 4 de mar. de 2017 a las 13:53, phoenixvk < notifications@github.com> escribió:

I'm integrating PAYTM paytm gateway in NICISTORE and ATLAS.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/yoonic/atlas/issues/9#issuecomment-284168365, or mute the thread https://github.com/notifications/unsubscribe-auth/AX0pH6BKFdzQuopqIR1nSAb_inr4BiZdks5riaUTgaJpZM4LX29M .

-- Mateo Morrison CEO at Tasky Exec Chairman at Fangoo