GithubHelp home page GithubHelp logo

thiagozg / githubjobs-clojure-service Goto Github PK

View Code? Open in Web Editor NEW
11.0 2.0 3.0 86 KB

Clojure Microservice, used: datomic, docker, pedestal, component, schema, hexagonal architecture

Dockerfile 11.17% Clojure 79.22% Makefile 7.82% Shell 1.79%
clojure clojure-development docker docker-compose hexagonal pedestal datomic schema component makefile

githubjobs-clojure-service's Introduction

GitHub Jobs an Clojure Microservice

This Service was created with the objective of exploring how to code a CRUD application from zero using Clojure language and other tools, like:

How to run

  1. First of all, you'll need lein configured
  2. Create a datomic account if you still don't have one
  3. Log into your datomic account and go to the Licenses Page
  4. Click on the Send License Key button. This will send you and email with a license key. We will also use the Download Key you can find on this page.
  5. Substitute ${hue} for your credentials and execute:
make infra-credentials DATOMIC_LOGIN=${hue} \
DATOMIC_PASSWORD=${hue} \
DATOMIC_LICENSE_KEY=${hue} \
DATOMIC_VERSION=${hue} \
STORAGE_ADMIN_PASSWORD=${hue} \
STORAGE_DATOMIC_PASSWORD=${hue}
  • DATOMIC_LOGIN is the email you have used to create your datomic account on step 2
  • DATOMIC_PASSWORD is the Download Key you can find on step 3.
  • DATOMIC_LICENSE_KEY is what was sent to you on step 4 without the license_key key and with no line breaks.
  • DATOMIC_VERSION should be the same you use on project.clj
  • STORAGE_ADMIN_PASSWORD and STORAGE_DATOMIC_PASSWORD can be anything you want.

Example:

make infra-credentials [email protected] \
DATOMIC_PASSWORD=aed2a94a-60e2-11eb-ae93-0242ac130002 \
DATOMIC_LICENSE_KEY=32hdd9qhd38h33....h3297hd2o23d \
DATOMIC_VERSION=0.9.6045 \
STORAGE_ADMIN_PASSWORD=bla \
STORAGE_DATOMIC_PASSWORD=ble
  1. Make sure you have maven installed on your machine. If you don't have it, you can install it via brew install maven or your preferred method.
  2. Go to datomic download page and download datomic-pro-0.9.6045.zip
  3. Unzip the file you have just downloaded, open a terminal window inside the folder you have just unziped and run:
mvn install
./bin/maven-install
  1. Execute make infra-run
  2. Execute make deps
  3. Execute make run

How to play

You can import Postman Collection to your postman app and make HTTP requests.

githubjobs-clojure-service's People

Contributors

philippeehlert avatar thiagozg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

githubjobs-clojure-service's Issues

Missing field "applicantLocationRequirements

I am using WordPress Plugin https://wordpress.org/plugins/job-postings/
I got an Error in google search result Job posting

Missing field "applicantLocationRequirements"

Please find SS Here: https://snipboard.io/5soeRx.jpg
https://snipboard.io/D6Susx.jpg

I have coding exist in my plugin for "applicantLocationRequirements" field
`
if( $remote == 'on' && $remote_data ){
$remote_data = unserialize($remote_data);

                        if( count($remote_data) >= 1 && $remote_data[0]['type'] != '' && $remote_data[0]['name'] != '' ){

                            if(count($remote_data) == 1){
                                self::$json_ld['applicantLocationRequirements'] = json_decode(json_encode(array('@type' => $remote_data[0]['type'], 'name' => $remote_data[0]['name'])), FALSE);
                            }else{
                                $data_array = array();
                                foreach($remote_data as $data){
                                    $data_array[] = array('@type' => $data['type'], 'name' => $data['name']);
                                }
                                self::$json_ld['applicantLocationRequirements'] = json_decode(json_encode($data_array), FALSE);
                            }
                        }
                    }

                    if( $remote == 'on' ){
                        self::$json_ld['jobLocationType'] = "TELECOMMUTE";
                    }`

Please Suggest me Something i am really Fadeup with that.

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.