yoonic / atlas Goto Github PK
View Code? Open in Web Editor NEWE-Commerce Backend API in Hapi.js and RethinkDB
License: MIT License
E-Commerce Backend API in Hapi.js and RethinkDB
License: MIT License
Anyone got success expt. Author? Deploying Atlas on VPS on DigitalOcean? Please share if so. I can run nicistore on VPS but atlas is not running though I follwed deployment steps.
Successfully ran Nicistore on a Docker container. Simple as clone, cd folder, build and run.
Tried same steps on Atlas. But clearly it's not installing itself. It runs, but nothing shows on port 8000.
My steps:
git clone
this repcd
the rep foldergit build
the repgit run -d --name atlas -p 8000:8000 -t yoonic/atlas
Something I'm doing wrong? Maybe I have to run RethinkDB and Atlas in the same container?
Hey, is Paypal payment supported? I don't see it on Nici store!
Hello sir,
Will you please tell me how to setup JWT_KEY?
and elaborate meaning the meaning of
Create a JWT secret key (e.g. using openssl rand -base64 32) and either:
Setup the env variable JWT_KEY
Add it to the configuration file at config/development in app.jwtKey.
i.e. 6th step in guide.
I've setup the JWT but im getting error like JWT_KEY is malformed.
thank you.
Machine OS : window 10
issue : i am getting following error code while npm install.
D:\Appvantage Images\db\atlas-master\atlas-master>npm install
npm WARN package.json [email protected] No license field.
\
[email protected] install D:\Appvantage Images\db\atlas-master\atlas-master\node_modules\bcrypt
node-gyp rebuild
D:\Appvantage Images\db\atlas-master\atlas-master\node_modules\bcrypt>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "" rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
MSBUILD : error MSB4132: The tools version "2.0" is unrecognized. Available tools versions are "4.0".
gyp ERR! build error
gyp ERR! stack Error: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:276:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Windows_NT 10.0.15063
gyp ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" "rebuild"
gyp ERR! cwd D:\Appvantage Images\db\atlas-master\atlas-master\node_modules\bcrypt
gyp ERR! node -v v4.4.2
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm ERR! Windows_NT 10.0.15063
npm ERR! argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install"
npm ERR! node v4.4.2
npm ERR! npm v2.15.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! D:\Appvantage Images\db\atlas-master\atlas-master\npm-debug.log
Is it going to be updated or enhanced? Or is it going to have dependency updates at least?
`phoenix@phoenix:~/Downloads/atlas-master$ sudo npm run dev
[sudo] password for phoenix:
[email protected] 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.
Which design style are you following?
I can't run api ( npm run dev
). I get these errors:
> 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`
/atlas/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126
if (!option) this.log.error("Unknown option: " + alias + "." + key, ReferenceError);
^
TypeError: Cannot read property 'error' of undefined
at OptionManager.mergeOptions (/atlas/node_modules/babel-core/lib/transformation/file/options/option-manager.js:126:28)
at OptionManager.addConfig (/atlas/node_modules/babel-core/lib/transformation/file/options/option-manager.js:107:10)
at OptionManager.findConfigs (/atlas/node_modules/babel-core/lib/transformation/file/options/option-manager.js:168:35)
at OptionManager.init (/atlas/node_modules/babel-core/lib/transformation/file/options/option-manager.js:229:12)
at compile (/atlas/node_modules/babel-core/lib/api/register/node.js:117:22)
at normalLoader (/atlas/node_modules/babel-core/lib/api/register/node.js:199:14)
at Object.require.extensions.(anonymous function) [as .js] (/atlas/node_modules/babel-core/lib/api/register/node.js:216:7)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Module.require (module.js:353:17)
[nodemon] app crashed - waiting for file changes before starting...
Something wrong with babel I think :/
Oi!
Vou falar em Português (BR). Primeiramente, parabéns! Ótimo projeto, acredito que pode evoluir para uma API-as-a-Service baseado na "nuvem" :)
Desculpar expor essa dúvida aqui, mas tentei achar seu email para enviar e discutir esse projeto, mas não achei :/
Existe pré integração com algum gateway de pagamento?
Gostaria de saber de entender a integração com meios de pagamentos, seria viável criar componentes para cada tipo de pagamento?
*Te pergunto isso pois não explorei.
Obrigado!
[email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
Awesome work btw.
Does it have any Paypal integration?
As per #1 you mentioned you would test the new bcrypt and node-sass modules in this and nicistore. Any update on that?
Hello, is it possible to turn this api to a marketplace api?
@andreftavares Why didn't you write any test 😇
Are there any plans on writing?👷
I'm integrating paytmgateway what I want to achieve is call genratechecksum() function. which gives me checksum and post the data to their URL.
I got checksum successfully now how should I post it where should I write the code? How to pass those parameters to Nicistore and again how to post the data to PAYTM url.
Hello,
Thanks for sharing this amazing project. I wanted to try and run this locally.
But I encountered following issue.
let me know if you have any idea about.
I am new to node.
Nash:atlas abinash$ npm install
[email protected] install /Users/abinash/ec_site/atlas/node_modules/bcrypt
node-gyp rebuild
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
gyp WARN download NVM_NODEJS_ORG_MIRROR is deprecated and will be removed in node-gyp v4, please use NODEJS_ORG_MIRROR
CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
./Release/.deps/Release/obj.target/bcrypt_lib/src/blowfish.o.d.raw { dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 37968779,
size: 87,
blocks: 8,
atime: 2016-09-01T04:31:13.000Z,
mtime: 2016-09-01T04:31:13.000Z,
ctime: 2016-09-01T04:31:13.000Z,
birthtime: 2016-09-01T04:31:13.000Z }
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
./Release/.deps/Release/obj.target/bcrypt_lib/src/bcrypt.o.d.raw { dev: 16777220,
mode: 33188,
nlink: 1,
uid: 501,
gid: 20,
rdev: 0,
blksize: 4096,
ino: 37968782,
size: 83,
blocks: 8,
atime: 2016-09-01T04:31:13.000Z,
mtime: 2016-09-01T04:31:13.000Z,
ctime: 2016-09-01T04:31:13.000Z,
birthtime: 2016-09-01T04:31:13.000Z }
CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
In file included from ../src/bcrypt_node.cc:1:
../node_modules/nan/nan.h:592:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:598:20: error: no type named 'GCEpilogueCallback' in 'v8::Isolate'
v8::Isolate::GCEpilogueCallback callback) {
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:603:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback
~~~~~~~~~~~~~^
../node_modules/nan/nan.h:609:20: error: no type named 'GCPrologueCallback' in 'v8::Isolate'
v8::Isolate::GCPrologueCallback callback) {
~~~~~~~~~~~~~^
4 errors generated.
make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at emitTwo (events.js:106:13)
gyp ERR! stack at ChildProcess.emit (events.js:191:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Darwin 14.5.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/abinash/ec_site/atlas/node_modules/bcrypt
gyp ERR! node -v v6.4.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
npm WARN [email protected] No license field.
npm ERR! Darwin 14.5.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v6.4.0
npm ERR! npm v3.10.3
npm ERR! code ELIFECYCLE
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the bcrypt package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs bcrypt
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls bcrypt
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/abinash/ec_site/atlas/npm-debug.log
How can I use mongodb instead of rethinkDB ?
Dear @andreftavares I have been working on this project since many days enhancing its components and usability. Please provide us document or guideline to run this project on docker either on digitalocean or on AWS. If this project is not running on docker then it will be obsolete. Please do us a favour. I found no one who have made it work. Please do us a favour. Thank you.
It's not clear where to update to get your images uploaded after going for your own atlas, rethinkdb and nicistore on a VPS.
I think there is something related to here
@andreftavares How to upload images to your products?
I will refer some issues I am encountering for both NICI and Atlas.
I am currently going to handle DOP (Dominican Pesos), where there is no cents and the format is: RD$
. For example: RD$100
or RD$10,000
. The questions are the following:
I am going to translate (and providing you guys the rep for it 👍 ) Nicistore to Spanish. I need to delete en {
and pt {
. Or you just add es {
in handlers? And where
We're developing and improving Nicistore to become it a multi-vendor marketplace too. Which files should the developer focus when creating the module. This will be a non admin, that can create products. For now we will not focus on Dashboard for them bla bla.
Simple as:
Register to Sell > Add products > We receive request > We accept or reject > They receive e-mail with their product's link.
Where we can integrate OpenID or Facebook, Twitter and Google Login?
Where we can integrate with Twilio when someone creates account a two-factor auth and order is made. Since phone number is already there.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.