Skip to content

dostoievskiab/nextjs-simple-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Next.JS Simple Blog

Introduction

Making a simple blog app to learn about some technologies i haven't worked before:

  • NextJS
  • SQLite
  • Knex

Installation

  1. Clone the repo with git clone [email protected]:dostoievskiab/nextjs-simple-blog.git
  2. Install packages with npm install
  3. Run the migrations npx knex migrate:latest
  4. Run seeds npx knex seed:all
  5. Run code using npm run dev

Notes to myself

  1. NextJS run around three unique functions, here are the description from the documentation (or you could access this stackoverflow post that has answer with a better explanation)
    • getStaticProps - Use to fetch data at build time.
    • getStaticPaths - Specify dynamic routes to pre-render pages based on data.
    • getServerSideProps - Fetch data on each request.

To Do

  1. Should check how to automatically insert timestamp on seed files with knex/sqlite
  2. Need to think about user/access structure

About

💻 Small blog using NextJS and SQLite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published