Skip to content

A basic DSPF for querying a user from Anilist's GraphQL API. Also my first ILE program made with VS Code, GNU Make, and compiled from the IFS

License

Notifications You must be signed in to change notification settings

barrettotte/Anilist-IBMi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anilist-IBMi

A basic display file and RPGLE program built over the Anilist GraphQL API (Just for fun/practice). Enter an Anilist username and display basic account stats. This is not meant to be a full API wrapper or handle all errors.

I wanted to make some dedicated UDF's and clean up my code, but its good enough for such a simple application.

This is my first IBM i side project using GNU Make, git, and VS Code. I still used SDA for display files because its a lot less tedious.

docs/screenshot.png

Running

  • Ensure that CCSID is 37 - chgjob ccsid(37)
  • call Anilist

Commands

  • Build - gmake all
  • Clean - gmake clean
  • Pull to IFS - gmake pull (still using SDA for DSPFs)
  • Push to Library - gmake push
  • Log - gmake > buildlog.txt 2>&1
  • Git push - git -c http.sslVerify=false push origin master

VS Code

Setup Environment

-- Set user's default PASE Shell using DB2 for i
CALL QSYS2.SET_PASE_SHELL_INFO('*CURRENT', '/QOpenSys/pkgs/bin/bash');
# Install git through yum (/QOpenSys/pkgs/bin/)
yum install git.ppc64
yum install make-gnu.ppc64

# config git user
git config --global user.email "First.Last@somewhere.com"
git config --global user.name "First Last"

# Add yum packages install directory to PATH
touch ~/.profile
echo PATH=$PATH:/QOpenSys/pkgs/bin >> ~/.profile

References

About

A basic DSPF for querying a user from Anilist's GraphQL API. Also my first ILE program made with VS Code, GNU Make, and compiled from the IFS

Topics

Resources

License

Stars

Watchers

Forks