Giter Site home page Giter Site logo

proto's Introduction

Proto - Foundry Row

Development Environment Setup

Setup MS SQL on Mac

  1. Install Docker container

https://hub.docker.com/_/microsoft-mssql-server

  1. Run it
docker run -e 'ACCEPT_EULA=Y' -e 'SA_PASSWORD=P@55w0rd;' -p 1433:1433 -d mcr.microsoft.com/mssql/server:2017-CU8-ubuntu

P@55w0rd; this all thing the password including ;

you can also see docker container running via Docker->Kitematic (look up for docker image in upper-right Mac menu)

  1. Get VS Code plug-in for MS SQL

  2. Create databaser

CREATE DATABASE FoundryRowDBLocalMac;

useful: check the list of databases

SELECT name, database_id, create_date FROM sys.databa
ses;

Run on Mac

Make sure

dotnet --version 

shows 2.2

if not, install 2.2

in September we shell move to 3.0

in VS Code hit F5

it should restore .net and npm packages, compile and run the server.

now run the client app...

cd Server/ClientApp
npm start

the server proxy localhost:5000 to localhost:4200 for the angular client.

Run on iPhone Simulator

For Mac

cd Server/ClientApp/
sudo gem install cocoapods
// You might need to run 'pod install' from platforms/ios/
ionic cordova build ios
xed platforms/ios/

see https://ionicframework.com/docs/v3/intro/deploying/ for details

If you are running Xcode 8, the code signing error will appear as a buildtime error, rather than as a pop-up:

To select the certificate to sign your app with, do the following:

  1. Go to the ‘Project Editor’ by clicking the name or your project in the ‘Project Navigator’
  2. Select the ‘General’ section
  3. Update "Bundle Identifier" to something unique
  4. Select the team associate with your signing certificate from the ‘Team’ dropdown in the ‘Signing’ section

Run and build in Xcode, this should launch simulator.

Run on iPhone itself

Connect your IPhone to Mac, in the XCode settings select your IPhone as run the run environment

This should deploy app to your phone before running it you need to trust certificate with which app was signed

Xcode platform selection Pick your Iphone

  1. Open the ‘Settings’ app on your iOS device
  2. Go to ‘General > Device Management’. You’ll see the email address associated with the Apple ID or Apple Developer account you used to code sign your app.
  3. Tap the email address
  4. Tap ‘Trust <your_email>’:

Database/EF Errors

if you run into SQL errors about missing fields, tables etc...

cd Models
dotnet ef database update init
dotent ef database update

This should reset DB to initial migration and after that apply all migrations sequentially

Integrating Google Sign-In

Full guide here https://developers.google.com/identity/sign-in/web/sign-in?refresh=1

  1. Create Google API Console project and client ID 1.Find Configure A project in https://developers.google.com/identity/sign-in/web/sign-in
  2. Select Web Browser as your app environment
  3. If you need to change or edit any params visit https://console.developers.google.com

Paypal test account

email: [email protected] passw: wjOnv-hH

proto's People

Contributors

achabokha avatar asaboha avatar maxximka avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

cevardo

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.