Giter Site home page Giter Site logo

renatomatos79 / order-apps Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 5.95 MB

Demo solution using .net core to auth and authorize users using JWT, node js api to allow client applications to create and find orders, search products and finally React Web Client and Android studio solution to consume both Apis. The solution was built using Visual Studio Code for any platform, NodeJS, MongoDB and SQL Server 2016 express.

C# 72.62% JavaScript 21.65% PowerShell 5.73%

order-apps's Introduction

order-apps

Demo solution using .net core to auth and authorize users using JWT, node js api to allow client applications to create and find orders, search products and finally React Web Components and Android studio solution to consume both Apis. The solution was built using Visual Studio Code for any platform, NodeJS, MongoDB and SQL Server 2016 express.

Let me introduce this repo:

  • mongodb: contains some scripts to initialize some collectoins like users, products and orders.

  • net-core-auth: .net core api using Dapper ORM, SQL Server 2016 and Json Web Tokens (JWT) to authenticate users and validate transactions

  • net-json-web-token: windows forms application, only used to generate JWT (test app)

  • node-js-orders nodejs api to create and get orders and also with some routines to search products by ID and name. This API looks for the Access Token on header, query string or body during the requests.

  • for the next commit a. Android Studio Mobile Application showing how to auth, search products and create orders. b. NET Core MVC showing how to consume the APIs mentioned before using SPA and React Components;

  • Before start you must install a. MongoDB b. SQL Server 2016 c. .NET Core on Ubuntu

Setup MongoDB

  1. Import the public key sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6

  2. Create a list file for mongoDB echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list

  3. Reload local packages sudo apt-get update

  4. Install mongo sudo apt-get install -y mongodb-org

  5. Starting mongo sudo service mongod start

Obs: on Ubuntu 16 you can find the mongo config => "cat /etc/mongod.conf" check the log and instances => "/var/lib/mongodb" and "/var/log/mongodb"

Setup SQL SERVER 2016

  1. curl https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
  2. curl https://packages.microsoft.com/config/ubuntu/16.04/mssql-server.list | sudo tee /etc/apt/sources.list.d/mssql-server.list
  3. sudo apt-get update
  4. sudo apt-get install -y mssql-server
  5. sudo /opt/mssql/bin/sqlservr-setup
  6. sudo service mssql-server start

order-apps's People

Contributors

renatomatos79 avatar

Watchers

James Cloos avatar  avatar

Forkers

fsolanosilva

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.