Git Product home page Git Product logo

svetlanam / junior-guru-nextjs Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 500 KB

Example Next.js application as a part of the presentation for Junior Guru community. This app is demonstration of the main Next.js features with real examples

Home Page: https://junior.guru/events/

JavaScript 98.79% CSS 1.21%
nextjs react community it junior-developer presentation honza-javorek junior-guru

junior-guru-nextjs's Introduction

Junior Guru

This talk was part of my presentation for Junior Guru organisation. Junior Guru is a platform for junior developers and switchers, who wants to join IT. Creator of this club is Honza Javorek. Everybody, not only juniors are welcome here.

About Next.JS

Next.js is open source web framework based on React.js library. Main features of this framework are:

  1. Different types of rendering - client side, server side, pre-rendering
  2. Image optimalisation
  3. Font optimalisation
  4. Better SEO
  5. Easy routing
  6. Navigating with Link component between pages

About app

In this example of the app, we have created:

  1. Page with Server Side Rendering
  2. Page with Static Generation
  3. Page with Incremental Static Generation
  4. Routing
  5. Dynamic routing
  6. Next Link
  7. Next Router
  8. Next Head
  9. Next Layout
  10. Styling in CSS modules
  11. Styling with Tailwind
  12. Api Routes

This app is about tweeting and about chickens. Backend is supported with Prisma ORM connected to local PostgreSQL database.

Setup Prisma

  1. Create local PostgreSQL database
  2. Setup env variable to connect to the database in secret .env file with name DATABASE_URL
  3. Run
npm install
# or
yarn install
  1. Run
npx prisma db push
  1. Run
npx prisma studio

for data manipulation 6. Run

npx prisma generate

Start this project

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.