Skip to content

Blog Backend. Vercel, React, Next.js.

License

Notifications You must be signed in to change notification settings

nandotess/Blog-Backend

Repository files navigation

Blog Backend

Notes

  • The backend is in the Vercel cloud, on a free tire plan.
  • This repository contains all backend from the Blog project.
  • GROQ is used to communicate with the database (GET).
  • REST API is used to communicate with the database (POST, PUT and DELETE).
  • SSR feature is used for Server Side Rendering.

Updating Production CMS

  • When pushing code to main branch, Vercel will automatically deploy the code to production cms.

Localhost

  • To run the project on localhost:
    • Execute npm install in your terminal.
    • Rename .env.SAMPLE to .env and update the values of the variables NEXT_PUBLIC_SANITY_PROJECT_ID, SANITY_API_TOKEN, GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET.
    • Execute npm run dev in your terminal.

TODO

  • Pagination
  • Improve the image update experience

About

Blog Backend. Vercel, React, Next.js.

Resources

License

Stars

Watchers

Forks