Home

Awesome

🔖 Blog App using NextJs And Appwrite

logo

Screenshot

screenshotsignup

screenshotlogin

screenshothome

🎬 Getting Started!

🤘 Install Appwrite

Follow our simple Installation Guide to get Appwrite up and running in no time. You can either deploy Appwrite on your local machine or, on any cloud provider of your choice.

Note: If you setup Appwrite on your local machine, you will need to create a public IP so that your hosted frontend can access it.

  1. Add a new Web App in Appwrite and enter the endpoint of your website (localhost, <project-name>.vercel.app etc)
  2. Create a new collection with the following properties

Make sure that your key exactly matches the key in the images

<p align="center"> <img src="https://user-images.githubusercontent.com/47685349/139072703-2893bb5d-833b-454b-b1cc-2950991b224e.png" alt="Content Rule" width="400"/> </p> <p align="center"> <img src="https://user-images.githubusercontent.com/47685349/139072749-0d23b6a6-50a8-45d9-855c-441aaf83cf3d.png" alt="IsComplete Rule" width="400"/> </p> <p align="center"> <img src="https://user-images.githubusercontent.com/47685349/139072919-223c4ceb-47fa-42f5-93ec-235510007039.png" alt="IsComplete Rule" width="400"/> </p>

Add the following permissions to your collections. These permissions ensure that only registered users can access the collection.

<p align="center"> <img src="https://user-images.githubusercontent.com/47685349/139072970-7523a39b-8ca0-4145-b63a-0be41fe10c08.png" alt="IsComplete Rule" width="400"/> </p>

🚀 Deploy the Front End

You have two options to deploy the front-end and we will cover both of them here. In either case, you will need to fill in these environment variables that help your frontend connect to Appwrite.

Run locally

Follow these instructions to run the demo app locally

$ git clone https://github.com/alceil/apppwrite-blogapp-with-nextjs
$ cd apppwrite-blogapp-with-nextjs

Now fill your environment variables

image

Now run the following commands and you should be good to go 💪🏼

$ npm install
$ npm run dev

Thanks

Glad to see here! Show some love by starring this repository.