├── .gitignore ├── backend ├── config │ └── db.js ├── controllers │ ├── goalController.js │ └── userController.js ├── middleware │ ├── authMiddleware.js │ └── errorMiddleware.js ├── models │ ├── goalModel.js │ └── userModel.js ├── package-lock.json ├── package.json ├── routes │ ├── goalRoute.js │ └── userRoute.js └── server.js └── client ├── .browserslistrc ├── .editorconfig ├── .gitignore ├── .vscode ├── extensions.json ├── launch.json └── tasks.json ├── README.md ├── angular.json ├── karma.conf.js ├── package-lock.json ├── package.json ├── src ├── app │ ├── app-routing.module.ts │ ├── app.component.css │ ├── app.component.html │ ├── app.component.spec.ts │ ├── app.component.ts │ ├── app.module.ts │ ├── auth.guard.spec.ts │ ├── auth.guard.ts │ ├── pages │ │ ├── add-goals │ │ │ ├── add-goals.component.css │ │ │ ├── add-goals.component.html │ │ │ ├── add-goals.component.spec.ts │ │ │ └── add-goals.component.ts │ │ ├── goals │ │ │ ├── goals.component.css │ │ │ ├── goals.component.html │ │ │ ├── goals.component.spec.ts │ │ │ └── goals.component.ts │ │ ├── login │ │ │ ├── login.component.css │ │ │ ├── login.component.html │ │ │ ├── login.component.spec.ts │ │ │ └── login.component.ts │ │ └── register │ │ │ ├── register.component.css │ │ │ ├── register.component.html │ │ │ ├── register.component.spec.ts │ │ │ └── register.component.ts │ ├── services │ │ ├── token-interceptor.service.spec.ts │ │ ├── token-interceptor.service.ts │ │ ├── user.service.spec.ts │ │ └── user.service.ts │ ├── user-data.ts │ └── user.ts ├── assets │ └── .gitkeep ├── environments │ ├── environment.prod.ts │ └── environment.ts ├── favicon.ico ├── index.html ├── main.ts ├── polyfills.ts ├── styles.css └── test.ts ├── tsconfig.app.json ├── tsconfig.json └── tsconfig.spec.json /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/.gitignore -------------------------------------------------------------------------------- /backend/config/db.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/config/db.js -------------------------------------------------------------------------------- /backend/controllers/goalController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/controllers/goalController.js -------------------------------------------------------------------------------- /backend/controllers/userController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/controllers/userController.js -------------------------------------------------------------------------------- /backend/middleware/authMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/middleware/authMiddleware.js -------------------------------------------------------------------------------- /backend/middleware/errorMiddleware.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/middleware/errorMiddleware.js -------------------------------------------------------------------------------- /backend/models/goalModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/models/goalModel.js -------------------------------------------------------------------------------- /backend/models/userModel.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/models/userModel.js -------------------------------------------------------------------------------- /backend/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/package-lock.json -------------------------------------------------------------------------------- /backend/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/package.json -------------------------------------------------------------------------------- /backend/routes/goalRoute.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/routes/goalRoute.js -------------------------------------------------------------------------------- /backend/routes/userRoute.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/routes/userRoute.js -------------------------------------------------------------------------------- /backend/server.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/backend/server.js -------------------------------------------------------------------------------- /client/.browserslistrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/.browserslistrc -------------------------------------------------------------------------------- /client/.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/.editorconfig -------------------------------------------------------------------------------- /client/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/.gitignore -------------------------------------------------------------------------------- /client/.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/.vscode/extensions.json -------------------------------------------------------------------------------- /client/.vscode/launch.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/.vscode/launch.json -------------------------------------------------------------------------------- /client/.vscode/tasks.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/.vscode/tasks.json -------------------------------------------------------------------------------- /client/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/README.md -------------------------------------------------------------------------------- /client/angular.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/angular.json -------------------------------------------------------------------------------- /client/karma.conf.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/karma.conf.js -------------------------------------------------------------------------------- /client/package-lock.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/package-lock.json -------------------------------------------------------------------------------- /client/package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/package.json -------------------------------------------------------------------------------- /client/src/app/app-routing.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/app-routing.module.ts -------------------------------------------------------------------------------- /client/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/app/app.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/app.component.html -------------------------------------------------------------------------------- /client/src/app/app.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/app.component.spec.ts -------------------------------------------------------------------------------- /client/src/app/app.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/app.component.ts -------------------------------------------------------------------------------- /client/src/app/app.module.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/app.module.ts -------------------------------------------------------------------------------- /client/src/app/auth.guard.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/auth.guard.spec.ts -------------------------------------------------------------------------------- /client/src/app/auth.guard.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/auth.guard.ts -------------------------------------------------------------------------------- /client/src/app/pages/add-goals/add-goals.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/app/pages/add-goals/add-goals.component.html: -------------------------------------------------------------------------------- 1 |

add-goals works!

2 | -------------------------------------------------------------------------------- /client/src/app/pages/add-goals/add-goals.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/add-goals/add-goals.component.spec.ts -------------------------------------------------------------------------------- /client/src/app/pages/add-goals/add-goals.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/add-goals/add-goals.component.ts -------------------------------------------------------------------------------- /client/src/app/pages/goals/goals.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/app/pages/goals/goals.component.html: -------------------------------------------------------------------------------- 1 |

goals works!

2 | -------------------------------------------------------------------------------- /client/src/app/pages/goals/goals.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/goals/goals.component.spec.ts -------------------------------------------------------------------------------- /client/src/app/pages/goals/goals.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/goals/goals.component.ts -------------------------------------------------------------------------------- /client/src/app/pages/login/login.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/app/pages/login/login.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/login/login.component.html -------------------------------------------------------------------------------- /client/src/app/pages/login/login.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/login/login.component.spec.ts -------------------------------------------------------------------------------- /client/src/app/pages/login/login.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/login/login.component.ts -------------------------------------------------------------------------------- /client/src/app/pages/register/register.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/app/pages/register/register.component.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/register/register.component.html -------------------------------------------------------------------------------- /client/src/app/pages/register/register.component.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/register/register.component.spec.ts -------------------------------------------------------------------------------- /client/src/app/pages/register/register.component.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/pages/register/register.component.ts -------------------------------------------------------------------------------- /client/src/app/services/token-interceptor.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/services/token-interceptor.service.spec.ts -------------------------------------------------------------------------------- /client/src/app/services/token-interceptor.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/services/token-interceptor.service.ts -------------------------------------------------------------------------------- /client/src/app/services/user.service.spec.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/services/user.service.spec.ts -------------------------------------------------------------------------------- /client/src/app/services/user.service.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/services/user.service.ts -------------------------------------------------------------------------------- /client/src/app/user-data.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/user-data.ts -------------------------------------------------------------------------------- /client/src/app/user.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/app/user.ts -------------------------------------------------------------------------------- /client/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /client/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /client/src/environments/environment.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/environments/environment.ts -------------------------------------------------------------------------------- /client/src/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/favicon.ico -------------------------------------------------------------------------------- /client/src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/index.html -------------------------------------------------------------------------------- /client/src/main.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/main.ts -------------------------------------------------------------------------------- /client/src/polyfills.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/polyfills.ts -------------------------------------------------------------------------------- /client/src/styles.css: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/styles.css -------------------------------------------------------------------------------- /client/src/test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/src/test.ts -------------------------------------------------------------------------------- /client/tsconfig.app.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/tsconfig.app.json -------------------------------------------------------------------------------- /client/tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/tsconfig.json -------------------------------------------------------------------------------- /client/tsconfig.spec.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/salnish/Rest_api-1/HEAD/client/tsconfig.spec.json --------------------------------------------------------------------------------