Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
1554d5b
Integrated the toolbar from angular material.
rupeshtiwari Apr 12, 2019
3d6120c
local hosting our production code
rupeshtiwari Apr 12, 2019
2d4ca9b
updated readme
rupeshtiwari Apr 16, 2019
433fbcf
updated readme
rupeshtiwari Apr 16, 2019
9fa4074
added login component and authservice.
rupeshtiwari Apr 16, 2019
12089f0
adding register component
rupeshtiwari Apr 16, 2019
9576612
fixed compilation
rupeshtiwari Apr 30, 2019
de130a7
fixed the toolbar menu
rupeshtiwari Apr 30, 2019
8f05cff
finished restfull api hosting in node.js
rupeshtiwari Apr 30, 2019
05d6d9f
integration of http in auth service
rupeshtiwari May 10, 2019
a073422
configured mongoose
rupeshtiwari May 10, 2019
4ee9cc8
saved data to mongodb
rupeshtiwari May 10, 2019
dca096a
login using mongodb
rupeshtiwari May 10, 2019
4e35a3c
server side debugging
rupeshtiwari May 16, 2019
1a18d03
debug client side code
rupeshtiwari May 22, 2019
9f07a1e
debug client and server
rupeshtiwari May 22, 2019
4855159
added getuserby id
rupeshtiwari May 22, 2019
fdbe43e
passport middle ware created
rupeshtiwari May 22, 2019
0e1ec26
added auth controller
rupeshtiwari May 22, 2019
b7ec22e
added middleware to routes
rupeshtiwari May 22, 2019
0418fa3
fixed the error on jsonwebtoken
rupeshtiwari May 22, 2019
c99d2e8
updated the sample env vriables
rupeshtiwari May 27, 2019
7d789c9
added local storage
rupeshtiwari May 28, 2019
f15ea65
added findme method to support refresh
rupeshtiwari May 29, 2019
437dee6
fixed refresh after register
rupeshtiwari May 29, 2019
337b519
fixed login flow
rupeshtiwari May 29, 2019
fe4ac7a
adding compression
rupeshtiwari May 29, 2019
46daa91
updated products page
rupeshtiwari May 29, 2019
8c53eaa
all the changes for heroku
rupeshtiwari Jun 4, 2019
80e7ff3
updated the website link from heroku
rupeshtiwari Jun 4, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
NODE_ENV = development
PORT = 4050
MONGODB_URI = mongodb://localhost/productmart
MONGOOSE_DEBUG = true
JWT_SECRET=1580d64d-b71f-43d5-8e3b-02330b63175e
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,7 @@ testem.log
# System Files
.DS_Store
Thumbs.db


#environment
.env
28 changes: 28 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"version": "0.2.0",
"configurations": [
{
"type": "chrome",
"request": "launch",
"name": "Client Debug",
"url": "http://localhost:4200",
"webRoot": "${workspaceFolder}",
"preLaunchTask": "npm: serve"
},
{
"type": "node",
"request": "launch",
"name": "Server Debug",
"port": 9229,
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": ["run-script", "debug"]
}
],
"compounds": [
{
"name": "Both Debug",
"configurations": ["Server Debug", "Client Debug"]
}
]
}
8 changes: 8 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"workbench.colorCustomizations": {
"titleBar.activeBackground": "#c183cf",
"titleBar.inactiveBackground": "#c183cf99",
"titleBar.activeForeground": "#15202b",
"titleBar.inactiveForeground": "#15202b99"
}
}
45 changes: 45 additions & 0 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "server:watch",
"problemMatcher": []
},
{
"type": "npm",
"script": "serve",
"isBackground": true,
"presentation": {
"echo": true,
"reveal": "always",
"focus": true,
"panel": "dedicated",
"showReuseMessage": true,
"clear": false
},
"group": {
"kind": "build",
"isDefault": true
},
"problemMatcher": {
"owner": "typescript",
"source": "ts",
"applyTo": "closedDocuments",
"fileLocation": ["relative", "${cwd}"],
"pattern": "$tsc",
"background": {
"activeOnStart": true,
"beginsPattern": {
"regexp": "(.*?)"
},
"endsPattern": {
"regexp": "Compiled |Failed to compile"
}
}
}
}
]
}
35 changes: 25 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
# PRODUCT MART _an angular app on MEAN stack_

Welcome to `product mart` this is an Angular App where we are using Angular Material to develop pages and we are making this app from the scratch to learn angular.

Welcome to `product mart` this is an Angular App where we are using Angular Material to develop pages and we are making this app from the scratch to **learn** angular.
[Live Application DEMO](https://online-shope-ecommerce-ws.herokuapp.com/home)
This course is introduction to `MEAN` stack step by step.
The `MEAN` stack uses `Mongo`, `Express`, `Angular` and `Node` for simple and scalable fullstack js applications

- [x] M = MONGO DB
- [x] E = EXPRESS
- [x] A = ANGULAR
Expand All @@ -15,15 +16,23 @@ Below are our learning checklist. We will cover one by one each topic while maki
Please follow all of my teaching videos here in YouTube.

- [x] ~~_Environment ( node, npm , expressjs, vscode )_~~ [2019-04-06]
- [x] ~~_Angular CLI_~~ [2019-04-06]
- [ ] Use Case (Display User List)
- [ ] Integrate with Angular Material
- [ ] Use Components from Angular Material
- [x] ~~_Angular CLI_~~ [2019-04-06]\*\*\*\*
- [x] ~~_Use Case (Display User List)_~~ [2019-04-12]
- [x] ~~_Integrate with Angular Material_~~ [2019-04-12]
- [x] ~~_Use Components from Angular Material_~~ [2019-04-12]
- [x] ~~_Host application in local server ( express.js)_~~ [2019-04-12]
- [x] ~~_Serve the data from local server_~~ [2019-04-12]
- [ ] adding login/logout feature
- [ ] adding register feature
- [ ] creating restful api server
- [ ] consuming restful api in Auth service
- [ ] installing mongo db
- [ ] Configuring mongoose in Angular App
- [ ] Integrating Restful API with mongo db
- [ ] Deploy prod code to Cloud Platform
- [ ] Heroku
- [ ] Create ToolBar Component
- [ ] Organize Project (shared and core module, feature module)
- [ ] Host application in local server ( express.js)
- [ ] Serve the data from local server
- [ ] Integrate app with Mongo DB.
- [ ]

## Learning Materials

Expand All @@ -45,3 +54,9 @@ Run `ng build` to build the project. The build artifacts will be stored in the `
## Angular CLI

This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 7.3.8.

## Getting Started.

git clone
npm i
cp .env.sample .env
3 changes: 2 additions & 1 deletion angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "product-mart:build"
"browserTarget": "product-mart:build",
"proxyConfig": "proxy.conf.json"
},
"configurations": {
"production": {
Expand Down
Loading