Skip to content

SergiVera/Seminar2-Angular

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API-REST

This is an API-REST using node.js mongoose, express and angular


Table of Contents


Description

The Stack MEAN, aims to create modern web applications with Javascript as the main language both Frontend and in the Backend and the Database. In this course we will create a CRUD application that is a Single Page Applications or Applications of a single page using Angular in its version 6. and this will be hosted on a Nodejs server that will use Express as server side framework and Mongodb as Database.

Technologies

  • node.js
  • express
  • mongoose
  • angular

How To Use

Installation

Libraries:

npm i

Run node project:

nodemon index.js

(1) Keep it running on a separate cmd while you are working on your project in order to see the changes

Install angular:

npm install -g @angular/cli
npm install --save-dev @angular-devkit/build-angular

The second command is used in order to avoid future errors

Create new project:

ng new <name>

Generate new component:

ng g component <name>

Generate other angular stuff:

ng g class <name>
ng g directive <name>
ng g service <name>
ng g guard <name>
ng g page <name>

Run mongoDB:

mongod

(2) Keep it running on a separate cmd while you are working on your project in order to see the changes

Run the project on local server:

ng serve --open

CAUTION!: You have to be on .\frontend folder in order to run this line

(3) Keep it running on a separate cmd while you are working on your project in order to see the changes

Create a build and change environment:

ng build [--e=<name>]

Add-on

There are the libraries that have been used in node:

npm i express -S
npm i -S body-parser
npm i -D nodemon
npm i -S mongoose
npm i -S bcrypt-nodejs
npm i -S crypto
npm i -S jwt-simple
npm i -S moment
npm i -S express-handlebars
npm i -S cors
npm i -S morgan

License

MIT License

Copyright (c) [2017] [James Q Quick]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


Author Info

Sara Padilla

Erik Blanca

Andrea Galera

Victor Piñón

Sergi Vera

About

API-Rest implementing the stack MEAN

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published