Coder Social home page Coder Social logo

oagunth's Introduction

oagunth

This is a toy project, a lot (and I do mean a lot) of things are missing. Also the code is not of high quality, there was no aim other than tinkering with some tech and illustrate some points for a talk I've given.

To run this locally, with the iOS client, you need to create an SSL certificate, with a local authority.

I used mkcert myself. After installing it, run mkcert -install then mkcert -pkcs12 -p12-file <some file>.pfx localhost Then extracted the root certificate of mkcert (cer format) from the Keychain.

Then :

  • Create a profile for iOS using Apple Configurator (2) set only the root certificate
  • Add the profile to iOS simulator
  • Trust the profile in iOS simulator (do not forget to go trust the root certificate that comes with it)
  • Then configure Kestrel to use this certificate

More details here : https://gist.github.com/ckpearson/f96074697c583de0d2599c6009191824 With mkcert you can ignore steps from 1 to 7 included.

Server

This project uses, .NET Core, F# (with Saturn Framework and MongoDB.

In the server folder, run :

  • dotnet tool restore
  • dotnet paket install
  • set the connection string to your MongoDb instance, using secrets. The command is dotnet user-secrets set "mongoDbUrl" "<your connection string>"
  • set the certificate you created earlier, either change the variable "Kestrel:Certificates:Default:Path", in the appsettings.Development.json file of the oagunth-api folder to the location of your certificate file created earlier (*.pfx) or save the file in the current oagunth-api folder
  • then use dotnet run to run the oagunth-api project, the api runs on the port 8080

Client

Make sure you have installed the profile and trusted the root certificate in the iOS simulator as required above.

Then open the XCode project located somehwere in the client folder. Run it.

** It's using SwiftUI so only iOS 13 and above are supported **

I wanted to put the screenshot here, but it's too ugly... I got some in the repo anyway. Only Current month has been "implemented".

I'll probably never update this again :p

oagunth's People

Contributors

essic avatar

Watchers

 avatar  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.