https://github.com/ekaone/knex-db
🔼⛔ Knexjs database hooks
https://github.com/ekaone/knex-db
database knexjs nextjs
Last synced: 3 months ago
JSON representation
🔼⛔ Knexjs database hooks
- Host: GitHub
- URL: https://github.com/ekaone/knex-db
- Owner: ekaone
- Created: 2021-02-04T06:08:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-02-04T06:10:04.000Z (over 5 years ago)
- Last Synced: 2025-12-06T03:57:55.927Z (7 months ago)
- Topics: database, knexjs, nextjs
- Language: JavaScript
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Next.js Hooks Database Demo
Video: https://youtu.be/QABkof8ygzI
Fetch your props directly from the Database?!?! Adam Wathan showed a simple example of loading props directly from the database: https://twitter.com/adamwathan/status/1246144545361997829
In this video we'll explore this hook, along with two others for building static pages. Next.js 9.3 came out with 3 new hooks that allow you to fetch data in different ways:
- getServerSideProps: Fetch data server side
- getStaticPaths: Fetch data to generate static pages
- getStaticProps: Fetch data to build a static page
## Links
- Source code: https://github.com/leighhalliday/nextjs-hooks-database
- Deployed app: https://next-hooks-database.now.sh/
- Full Stack Radio episode about Next.js: http://www.fullstackradio.com/137
- Release notes for Next.js 9.3: https://nextjs.org/blog/next-9-3
- Learn JavaScript, React & more with Treehouse (affiliate link): https://treehouse.7eer.net/c/1214671/228915/3944