All Projects → bojidaryovchev → Nest Angular

bojidaryovchev / Nest Angular

Licence: mit
NestJS, Angular 6, Server Side Rendering (Angular Universal), GraphQL, JWT (JSON Web Tokens) and Facebook/Twitter/Google Authentication, Mongoose, MongoDB, Webpack, TypeScript

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Nest Angular

Mern Boilerplate
Fullstack boilerplate with React, Redux, Express, Mongoose, Passport Local, JWT, Facebook and Google OAuth out of the box.
Stars: ✭ 112 (-63.52%)
Mutual labels:  mongoose, mongodb, express, jwt, passport, facebook-login, google-login
Node Express Mongoose Passport Jwt Rest Api Auth
Node, express, mongoose, passport and JWT REST API authentication example
Stars: ✭ 146 (-52.44%)
Mutual labels:  mongoose, express, jwt, jwt-authentication, passport
Node Express Mongodb Jwt Rest Api Skeleton
This is a basic API REST skeleton written on JavaScript using async/await. Great for building a starter web API for your front-end (Android, iOS, Vue, react, angular, or anything that can consume an API). Demo of frontend in VueJS here: https://github.com/davellanedam/vue-skeleton-mvp
Stars: ✭ 603 (+96.42%)
Mutual labels:  mongoose, mongodb, express, jwt, jwt-authentication
Nest User Auth
A starter build for a back end which implements managing users with MongoDB, Mongoose, NestJS, Passport-JWT, and GraphQL.
Stars: ✭ 145 (-52.77%)
Mutual labels:  graphql, mongoose, mongodb, nestjs, nest
Nodepress
😎 RESTful API service for Blog/CMS, powered by @nestjs
Stars: ✭ 829 (+170.03%)
Mutual labels:  mongoose, mongodb, express, nestjs, nest
Angular Full Stack
Angular Full Stack project built using Angular, Express, Mongoose and Node. Whole stack in TypeScript.
Stars: ✭ 1,261 (+310.75%)
Mutual labels:  mongoose, mongodb, express, jwt, angular-cli
Ecommerce Site Template
A beautiful e-commerce template powered by React, Redux and other modern web tech.
Stars: ✭ 167 (-45.6%)
Mutual labels:  webpack, mongoose, mongodb, express, passport
Jwt Node Vue
Repositório responsável pelo primeiro projeto da série de vídeos: Coding Stuff.
Stars: ✭ 29 (-90.55%)
Mutual labels:  mongoose, mongodb, express, jwt, jwt-authentication
Blog Service
blog service @nestjs
Stars: ✭ 188 (-38.76%)
Mutual labels:  graphql, mongoose, mongodb, express, nestjs
Jianshu
仿简书nx+nodejs+nestjs6+express+mongodb+angular8+爬虫
Stars: ✭ 296 (-3.58%)
Mutual labels:  mongoose, mongodb, express, nestjs, passport
Isomorphic Redux Cnode
😊👻基于react->express->mongo技术栈的同构SPA
Stars: ✭ 123 (-59.93%)
Mutual labels:  webpack, mongoose, mongodb, express
Saas
Build your own SaaS business with SaaS boilerplate. Productive stack: React, Material-UI, Next, MobX, WebSockets, Express, Node, Mongoose, MongoDB. Written with TypeScript.
Stars: ✭ 2,720 (+785.99%)
Mutual labels:  mongoose, mongodb, express, passport
Mongoose
Mongoose module for Nest framework (node.js) 🍸
Stars: ✭ 191 (-37.79%)
Mutual labels:  mongoose, mongodb, nestjs, nest
Securing Restful Apis With Jwt
How to secure a Nodejs RESTful CRUD API using JSON web tokens?
Stars: ✭ 301 (-1.95%)
Mutual labels:  mongoose, mongodb, express, jwt
MyAPI
A template to create awesome APIs easily ⚡️
Stars: ✭ 117 (-61.89%)
Mutual labels:  nest, jwt-authentication, jwt-auth, nestjs
Nodejs Rest Api Project Structure Express
Nodejs project structure practices for building RESTful APIs using Express framework and MongoDB.
Stars: ✭ 134 (-56.35%)
Mutual labels:  mongoose, mongodb, express, jwt-authentication
Nestjs Query
Easy CRUD for GraphQL.
Stars: ✭ 325 (+5.86%)
Mutual labels:  graphql, mongoose, mongodb, nestjs
Boilerplate Vue Apollo Graphql Mongodb
Start your magical stack journey!
Stars: ✭ 85 (-72.31%)
Mutual labels:  graphql, mongoose, mongodb, express
Netcoreblockly
.NET Core API to Blockly - generate from WebAPI, Swagger, OData, GraphQL =>
Stars: ✭ 121 (-60.59%)
Mutual labels:  graphql, jwt, jwt-authentication, jwt-auth
Intro To Graphql
[Course] Introduction to GraphQL
Stars: ✭ 175 (-43%)
Mutual labels:  graphql, mongoose, mongodb, express

nest-angular

A fullstack JavaScript project, using technologies from the modern stack, such as:

  • NestJS - a JS backend framework providing architecture out of the box with a syntax similar to Angular
  • Angular - a JS frontend framework created by Google
  • Angular Universal - Angular Server Side Rendering - prerendered crawlable pages
  • RxJS - reactive extensions for JavaScript
  • Webpack - the ultimate JS bundler - used for the server code since Angular has it under the hood
  • MongoDB - a NoSQL database
  • Mongoose - MongoDB object modeling designed to work in an asynchronous environment
  • TypeScript - superset of JS which compiles to JS, providing compile-time type checking
  • Passport - a popular library used to implement JavaScript authentication
  • jsonwebtoken - a JavaScript json web tokens implementation by auth0

Running the project

These instructions should be sufficient for one to get the project going on their local machine

Cloning the github repository

To clone the project, run

git clone https://github.com/bojidaryovchev/nest-angular.git

Installing the dependencies

To install the dependencies after you've cloned the project, go to its root folder and run

npm install

Building the Angular application

Before you start the server, you need to build the Angular application. To do so, run

npm run build:universal

Starting the server

Once you have the Angular app built, you can start the server by running

npm run watch:server

Notice that the server uses MongoDB so we need to have a MongoDB instance running so the server can connect to it

Alternative commands

If you need to work on the frontend and backend parts at the same time, you can run

npm run watch

Then, you can go to the Angular dev server at port 4200 and test server requests (to port 1337), we got a proxy to the backend

If you only need to work on the frontend, you can run

npm run watch:client

Alternatively, if you only need to work on the backend, you can run

npm run watch:server

Keeping in mind that you need to have the Angular app built and a mongodb connection established

Instructions

Getting GraphQL to work

Currently there are issues with several packages so even though we have GraphQL implemented, it stays commented out because it doesn't work.. Here are the instructions to make it work:

  • Download https://www.dropbox.com/s/7bvht9thbmwt1e5/fixed-apollo-modules.rar?dl=0 - those are the apollo-angular and apollo-angular-link-http modules compiled in commonjs - then go in your node_modules folder and replace your apollo-angular and apollo-angular-link-http modules with these ones
  • Download https://www.dropbox.com/s/n0vwfvdmn7wtkj8/fixed-nest-modules.rar?dl=0 - this is the fixed @nestjs/graphql module - there was an error when in combination with Angular Universal which is now fixed - then replace your @nestjs/graphql module with this one
  • Open node_modules/@types/ws/index.d.ts and find net.AddressInfo - you will see a type definition of a function: address(): net.AddressInfo | string - change it to address(): string

Now, you can go ahead and uncomment the GraphqlModules on both client/server side and it works decently, I am using it in another project which is a clone of this one and everything works..

Use Social login

Modify with your application credentials:

  • src/server/modules/auth/config/facebook-config.ts
  • src/server/modules/auth/config/google-config.ts
  • src/server/modules/auth/config/twitter-config.ts

To use it in mobile application with Facebook-token integration (Facebook App), use /api/auth/facebook/token endpoint.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].