Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
feat: Rewrite all project
Browse files Browse the repository at this point in the history
  • Loading branch information
EndyKaufman committed Sep 26, 2018
1 parent f06c10e commit 951fc8c
Show file tree
Hide file tree
Showing 293 changed files with 36,457 additions and 283,218 deletions.
106 changes: 0 additions & 106 deletions .angular-cli.json

This file was deleted.

23 changes: 9 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
.tmp
dist
tmp
.ng_pkg_build
out-tsc
*.tgz
/dist
/tmp
/out-tsc

# dependencies
node_modules
/node_modules

# IDEs and editors
/.idea
Expand All @@ -30,17 +27,15 @@ node_modules
# misc
/.sass-cache
/connect.lock
/coverage/*
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings

# e2e
/e2e/*.js
/e2e/*.map

#System Files
# System Files
.DS_Store
Thumbs.db
/server.js
.env
server.js
Empty file added .gitkeep
Empty file.
46 changes: 0 additions & 46 deletions .npmignore

This file was deleted.

3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: node_js
node_js:
- "8"
- "7"
before_install:
- npm install -g npm@5.8.0
- npm install -g npm@6.1.0
109 changes: 77 additions & 32 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,57 +1,102 @@
# rucken-todo
# backend: rucken-todo-nestjs

[![Greenkeeper badge](https://badges.greenkeeper.io/rucken/todo-web.svg)](https://greenkeeper.io/)
[![NPM version][npm-image]][npm-url]
[![Greenkeeper badge](https://badges.greenkeeper.io/rucken/todo-nestjs.svg)](https://greenkeeper.io/)
[![Build Status][travis-image]][travis-url]
[![Gitter][gitter-image]][gitter-url]
[![Join the chat at telegram][telegram-image]][telegram-url]
[![dependencies-release][dependencies-image]][dependencies-url]

[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/rucken/todo-nestjs)

A simple todo application demonstrating the basic usage of permissions with NestJS (JWT, Passport, Facebook, Google+, User, Group, Permission)


## Features

A simple todo application demonstrating the basic usage of [rucken](https://github.com/rucken).
* [NestJS](https://github.com/nestjs/nest) - a JS backend framework providing architecture out of the box with a syntax similar to Angular
* [TypeORM](https://github.com/mongodb/mongo) - ORM for TypeScript and JavaScript (ES7, ES6, ES5). Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, WebSQL databases.
* [TypeScript](https://github.com/Microsoft/TypeScript) - superset of JS which compiles to JS, providing compile-time type checking
* [Passport](https://github.com/jaredhanson/passport) - a popular library used to implement JavaScript authentication (Facebook, Google+)
* [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) - a JavaScript json web tokens implementation by auth0

## Usage
- Clone or fork this repository `git clone https://github.com/rucken/todo.git`
- Make sure you have [node.js](https://nodejs.org/) installed version 6+
- Make sure you have NPM installed version 3+
- Open comand line in folder `rucken-todo`
- clone or fork [repository](https://github.com/rucken/todo-nestjs.git) `git clone --recursive https://github.com/rucken/todo-nestjs.git`
- make sure you have [node.js](https://nodejs.org/) installed version 8+
- make sure you have NPM installed version 5+
- copy `develop._env` to `develop.env` and set environments for use (on Windows copy with IDE)
- run `npm install` to install project dependencies
- run `npm run app:start-dev` to fire up dev server (backend on environment.apiUrl)
- run `npm run app:start-prod` to fire up prod server (backend on environment.prod.apiUrl)
- run `npm run app:start-mockapi` to fire up dev server (backend on environment.mockapi.apiUrl)
- Open browser to [`http://localhost:4200`](http://localhost:4200)
- run `npm run build` to install project dependencies
- run `npm run start:prod` to fire up prod server (`npm run start:dev` - dev server)
- Open browser to [`http://localhost:5000/swagger`](http://localhost:5000/swagger)

## Run with server side rendering (prod)
- run `npm run ssr:build-prod` to build application
- run `npm run ssr:start` run with ssr (backend on environment.prod.apiUrl)
- Open browser to [`http://localhost:4200`](http://localhost:4200)
### Users
- user with admin group: admin@admin.com, password: 12345678
- user with user group: user1@user1.com, password: 12345678
- user with user group: user2@user2.com, password: 12345678

## Run with server side rendering
- run `npm run ssr:build-mockapi` to build application
- run `npm run ssr:start` run with ssr (backend on environment.mockapi.apiUrl)
- Open browser to [`http://localhost:4200`](http://localhost:4200)
### Swagger
- local: [`http://localhost:5000/swagger`](http://localhost:5000/swagger)
- online on now with db sqlite: [`https://rucken-todo-nestjs.now.sh/swagger`](https://rucken-todo-nestjs.now.sh/swagger)
- online on now with db postgres: [`https://rucken-todo-nestjs-postgres.now.sh/swagger`](https://rucken-todo-nestjs-postgres.now.sh/swagger)
- apiKey template: ```JWT <token_generated_on_login>```

### Docs
- local: [`http://localhost:5000/docs`](http://localhost:5000/docs)
- online on now: [`https://rucken-todo-nestjs.now.sh/docs`](https://rucken-todo-nestjs.now.sh/docs)

### With UI on Angular 6+
- online on now with gh-pages: [`https://rucken.github.io/todo`](https://rucken.github.io/todo)
- online on now with ssr: [`https://rucken-todo.now.sh`](https://rucken-todo.now.sh)

## License

MIT

## Build
- run `npm run build` to build libs and application
[travis-image]: https://travis-ci.org/rucken/todo-nestjs.svg?branch=master
[travis-url]: https://travis-ci.org/rucken/todo-nestjs
[dependencies-image]: https://david-dm.org/rucken/todo-nestjs/status.svg
[dependencies-url]: https://david-dm.org/rucken/todo-nestjs

---
# frontend: rucken

[![Greenkeeper badge](https://badges.greenkeeper.io/rucken/todo.svg)](https://greenkeeper.io/)
[![NPM version][npm-image]][npm-url]
[![Build Status][travis-image]][travis-url]
[![Crowdin](https://d322cqt584bo4o.cloudfront.net/rucken-todo/localized.svg)](https://crowdin.com/project/rucken-todo)
[![Gitter][gitter-image]][gitter-url]
[![Join the chat at telegram][telegram-image]][telegram-url]

Core with UI for web and native todo application maked on Angular6+

## Usage
```
git clone https://github.com/rucken/todo.git my-app
cd my-app
npm install
npm run start:prod
```

## Quick links

[Live demo](https://rucken.github.io/todo) [[source]](https://github.com/rucken/todo) - Demo application (backend: http://www.mockapi.io).
[@rucken/cli](https://github.com/rucken/cli) - Console tools to create and build [Angular6+](https://angular.io/) and [NestJS](https://nestjs.com/) application based on [Rucken](https://github.com/rucken) template

[Live demo: master (SPA on GhPages)](https://rucken.github.io/todo) [[source]](https://github.com/rucken/todo) - Demo application (backend: https://rucken-todo-nestjs.now.sh ).

[Live demo: develop (SSR on Now)](https://rucken-todo.now.sh ) [[source]](https://github.com/rucken/todo) - Demo application with server side rendering (backend: https://rucken-todo-nestjs.now.sh ).

[Live demo (SSR)](https://rucken-todo.herokuapp.com) [[source]](https://github.com/rucken/todo) - Demo application with server side rendering (backend: http://www.mockapi.io).
[Live demo: develop (NestJS on Now)](https://rucken-todo-nestjs.now.sh) [[source]](https://github.com/rucken/todo-nestjs) - Demo application with live backend (backend: https://nestjs.com).

[Live demo (NestJS)](https://rucken-todo-nestjs.herokuapp.com) [[source]](https://github.com/rucken/todo-nestjs) - Demo application with live backend (backend: https://nestjs.com).

## License

MIT

[travis-image]: https://travis-ci.org/rucken/todo.svg?branch=develop
[travis-image]: https://travis-ci.org/rucken/todo.svg?branch=master
[travis-url]: https://travis-ci.org/rucken/todo
[gitter-image]: https://img.shields.io/gitter/room/rucken/todo.js.svg
[gitter-url]: https://gitter.im/rucken/todo
[npm-image]: https://badge.fury.io/js/%40rucken%2Ftodo-web.svg
[npm-url]: https://npmjs.org/package/@rucken/todo-web
[dependencies-image]: https://david-dm.org/rucken/todo-web/status.svg
[dependencies-url]: https://david-dm.org/rucken/todo-web
[npm-image]: https://badge.fury.io/js/%40rucken%todo.svg
[npm-url]: https://npmjs.org/package/@rucken/todo
[dependencies-image]: https://david-dm.org/rucken/todo/status.svg
[dependencies-url]: https://david-dm.org/rucken/todo
[telegram-image]: https://img.shields.io/badge/chat-telegram-blue.svg?maxAge=2592000
[telegram-url]: https://t.me/rucken
3 changes: 0 additions & 3 deletions _env

This file was deleted.

Loading

0 comments on commit 951fc8c

Please sign in to comment.