Code Monkey home page Code Monkey logo

jun-a-k's Introduction

Jun(a)k - yoonak

In Croatian junak pronouncing yoonak means hero. Be a yoonak. Report when you find garbage in the wild. We will make sure to collect it!

Screencast

WIP screencast

Apps

junkR is frontend part of the app.

yoonak is backend part

Backend Tech

  1. Django
  2. GraphQL

Frontend Tech

  1. React
  2. Appolo

Report wild garbage be Yoonak

  1. Google report garbage.
  2. Open page
  3. Click on report
  4. Enable location services if they are not
  5. Take a picture
  6. Send report
  7. Leave us mail to collect reward

Development server setup

Create self signed ssl for your local domain in my case th.loca

openssl req -x509 -out th.loc.crt -keyout th.loc.key \
  -newkey rsa:2048 -nodes -sha256 \
  -subj '/CN=th.loc' -extensions EXT -config <( \
   printf "[dn]\nCN=th.loc\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:th.loc\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")

Make PEM file from key and crt

cat th.loc.key th.loc.crt > th.loc.pem

Change package.json to point webpack to our pem ssl cert

"start": "HTTPS=true react-scripts start",
"prestart": "rm ./node_modules/webpack-dev-server/ssl/server.pem && cp -f ./certs/th.loc.pem ./node_modules/webpack-dev-server/ssl/server.pem",

Run servers with

yarn start
and
python manage.py runserver_plus --cert-file ../certs/th.loc.crt --key-file ../certs/th.loc.key 0.0.0.0:8000

jun-a-k's People

Contributors

msvalina avatar

Stargazers

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