/eshop-angular-node

Eshop with stripe and cart, with angular universal and node.js - express

Primary LanguageHTML

Angular universal (server-side rendering) with node.js and mongoDB

Eshop with google login, cart save in session or user, test buy with stripe

PREPARE ENVIROMENT

Create dev.js in config and add keys as their are prepare in - dev.setThisFromExternalApiKeys

mongoURI - use link to mongoDB database, e.g. from mlab.com

googleClientID - create to set login through google - google API
googleClientSecret - create to set login through google - google API

stripePublishableKey - set to work with stripe payments
stripeSecretKey - set to work with stripe payments
sendGridKey - set to use sendGrid

cloudinaryName - set to upload images straight from angular to cloudinary
cloudinaryKey - set to upload images straight from angular to cloudinary
cloudinarySecret - set to upload images straight from angular to cloudinary
redisUrl: { host: 'localhost', port: 6379 }

BUILD AND SERVE

without docker

Serve redis - host:localhost port:6379
Build and serve
Run npm run ssr

Serve
Run npm run start

with docker

Run docker compose up
(will start redis and app)
redisUrl: { host: 'redis-serve', port: 6379 }

TEST ORDER

-Use test credit card number for stripe for testing the order - 4242 4242 4242 4242