Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

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

Notifications You must be signed in to change notification settings

pararell/eshop-angular-node

Repository files navigation

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