Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

15 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Codes for submissions as code test

Prerequisites

To start your Phoenix server:

  • Install dependencies with mix deps.get
  • Install Node.js dependencies with cd assets && npm install
  • Start Phoenix endpoint with mix phx.server

To check the submission

Run Phoenix server first, then you can check them with url below

Part 1

Part 2

Check URL: localhost:4000

I implemented this part by files below

  1. /lib/hello_web/controllers/page_controller.ex - Render an index.html and pass the parameters from request.

  2. /lib/hello.ex - Declared the function repos({word, page, per_page}) to call the github api.

  3. /lib/github_resultstream.ex - Github api implemented part. Call a api with url and manipulate body and header from github api.

  4. /lib/hello_web/views/page_view.ex - implemented functions which are relative with template file

  5. `/lib/hello_web/templates/page/index.html.eex - Index template for 10 by 10 table with pagination.

About

Code challenge

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages