GithubHelp home page GithubHelp logo

ginkishi / angular11-app Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ganatan/angular-app

0.0 1.0 0.0 25.15 MB

Angular 11 ,Bootstrap 5, Node.js, Express.js, CRUD REST API, PWA, SSR, SEO, Angular Universal, Lazy Loading, PostgreSQL, MYSQL

JavaScript 51.69% TypeScript 15.92% HTML 18.91% CSS 13.47%

angular11-app's Introduction

Angular 11 / Bootstrap 5 & CRUD REST API

Ganatan Angular Example Demo

it's a repo designed to create a Web Application with Angular 11

Here is a working live demo : https://angular.ganatan.com/

Angular 11 Example Application

Lighthouse Audit

Table of contents

Front-end : What's included

Dependencies

  • Angular : 11.2.0
  • Angular CLI : 11.2.0
  • Angular Universal : 11.1.2
  • Bootstrap : 5.0.0-beta1
  • Fontawesome : 5.15.1
  • jquery : 3.5.1

Features

  • Routing
  • Lazy Loading
  • Server Side Rendering
  • Progressive Web App
  • Responsive Layout
  • Search Engine Optimization (SEO)
  • Components
  • Services
  • Reactive Form
  • Template Driven Forms
  • Search / Grid / Pagination
  • Leaflet

Quick start

# select a repo from github, gitlab or bitbucket

# download the example or clone the repo from github
git clone https://github.com/ganatan/angular11-app.git

# download the example or clone the repo from gitlab
git clone https://gitlab.com/ganatan/angular11-app.git

# download the example or clone the repo from bitbucket
git clone https://bitbucket.org/ganatan/angular11-app.git

# change directory
cd angular11-app
cd frontend

# install the repo with npm
npm install

# start the server
npm start

in your browser go to http://localhost:4200

Front-end

Installation

  • npm install (installing dependencies)
  • npm outdated (verifying dependencies)

Developpement

Settings

  • you can select one of these Datasources

  • Change settings in src/app/modules/application/movies-images-list

  • File config/config.service.ts

  • default: LOCAL JSON

  • LOCAL REST API CRUD : http://localhost:5004

Tests (Use Chrome Version 87 minimum)

  • npm run lint
  • npm run test
  • npm run e2e

Compilation

  • npm run build ( without SSR)
  • npm run build:ssr ( with SSR)

Production

Bootstrap UI Prototypes

  • change directory cd ui (Bootstrap 4) or ui-v5 (Bootstrap 5)
  • Launch html pages in your browser

Back-end

Back-end : What's included

Tools

  • mysql-express-batch (with Node.js)

  • mysql-sql (with SQL Scripts)

  • postgresql-express-batch (with Node.js)

  • postgresql-express-crud (with Node.js and Express)

  • postgresql-sql (with SQL Scripts)

Features

  • Database Creation
  • Domains Creation (only PostgreSQL)
  • Tables Creation
  • Importing Data
  • Exporting Data
  • Serving RESTful CRUD API

Database Creation with PostgreSQL

Use the SQL scripts in postgresql-sql

  • create-database.sql
  • create-domains.sql
  • create-tables.sql
  • insert-data.sql

Database Creation with MySQL

Use the SQL scripts in mysql-sql

  • create-database.sql
  • create-tables.sql
  • insert-data.sql

Database Creation with Node.js and PostgreSQL

PostgreSQL Password

  • Change settings in postgresql-express-batch/app/config
  • File config/config.json
  • dbUser: "postgres"
  • dbPassword: "Trustno1" ! Change the Fox Mulder password by your password
# select the repo
cd postgresql-express-batch

# install the repo with npm
npm install

# create database and import JSON data
npm run create

# For the fun delete All data/export Files
# Export JSON data in data/export
npm run export

# Check the new files (for example movies.json) 

Database Creation with Node.js and MySQL

MySQL Password

  • Change settings in mysql-express-batch/app/config
  • File config/config.json
  • dbUser: "root"
  • dbPassword: "Trustno1" ! Change the Fox Mulder password by your password
# select the repo
cd mysql-express-batch

# install the repo with npm
npm install

# create database and import JSON data
npm run create

# For the fun delete All data/export Files
# Export JSON data in data/export
npm run export

# Check the new files (for example movies.json) 

Serving CRUD REST API with Node.js & Express & PostgreSQL

PostgreSQL Password

  • Change settings in postgresql-express-crud/app/config
  • File config/config.json
  • dbUser: "postgres"
  • dbPassword: "Trustno1" ! Change the Fox Mulder password by your password
# select the repo
cd postgresql-express-crud

# install the repo with npm
npm install

# Serve CRUD REST API : development mode with nodemon
npm run dev

# Serve CRUD REST API : local mode
npm run start

# Serve CRUD REST API : production mode
npm run prod

# Serve CRUD REST API : production mode with pm2 (process manager)
pm2 start process.config.js --env prod

Tests API & PostgreSQL

Author

  • Updated : 13/02/2021
  • Author : danny

Documentation

English Tutorials

Tutoriels en français

angular11-app's People

Contributors

dev-assassin avatar ganatan avatar ganatanbriel avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.