Skip to content

lowcodelounge/nocode-api-github-pages

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

No-Code API with GitHub Pages

A template for creating a read-only API from a CSV file and hosting it on GitHub Pages

How it works

  1. Create a copy of this repo template.
  2. Replace mydata.csv with your data.
  3. Publish to GitHub Pages.

Your data is published as a JSON file that you can use to pull content into your apps and design tools.

More details

Create a copy of this repo template

  • On the code tab, press the Use this template button.
  • You will be prompted to create a new repository under your account.
  • IMPORTANT: Use the same repo name, nocode-api-github-pages, so that everything works out of the box. If you want to use a different name, you can, you just need to update the baseurl setting in the _config.yml to match.

Replace mydata.csv with your data

  • The mydata.csv file is located in the _data folder.
  • This file contains example data you can test with your repo.
  • To replace the data, you can copy and paste text comma-separated-value format over the existing text or you can replace the whole file.
  • To keep things simple, name your file “mydata.csv” and replace the existing one.
  • If you want to use a different filename, update the data-file-name setting in the _config.yml file. (Note: Don't include the .csv extension in the setting; just the filename.)

To see what's going on with your data, you can use json2table.com to see the JSON content rendered as both a table and tree. Just copy and paste the content from your api.json file. This can help with troubleshooting if something is not working.

Note this site is not secure so don't paste any sensitive data there.

Publish to GitHub Pages

  • Under the Settings, go to Pages.
  • Set the source to main and press Save.
  • After a few minutes your site will be live at the displayed URL.
  • The homepage will show the basic information about this tool.
  • The URL of the JSON file is http://YOUR-GITHUB-ACCOUNT/YOUR-REPO-NAME/api.json.

Credit and license

This project was created primarily using the GitHub Pages gem for Jekyll and a slightly modified HTML5 Boilerplate.

About

A template for creating a read-only API from a CSV file and hosting it on GitHub Pages

Resources

License

Stars

Watchers

Forks

Releases

No releases published