Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anishagg17/blog
deployed at :
https://github.com/anishagg17/blog
contentful nextjs reactjs
Last synced: about 2 months ago
JSON representation
deployed at :
- Host: GitHub
- URL: https://github.com/anishagg17/blog
- Owner: anishagg17
- Created: 2020-05-17T13:22:24.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T18:16:17.000Z (about 2 years ago)
- Last Synced: 2024-05-28T23:42:35.837Z (8 months ago)
- Topics: contentful, nextjs, reactjs
- Language: TypeScript
- Homepage: https://blog.anish1712.now.sh/
- Size: 1.48 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Blog application with NextJS and Contentful
This is a codebase for blog application that I build using NextJS with Contentful API
Live Demo: https://blog.anish1712.now.sh/
## Getting Started
### Clone this repo to your machine
```bash
$ git [email protected]:anishagg17/Blog.git
$ cd Blog
```### Without Docker
Run it locally from [http://localhost:3000](http://localhost:3000):
```bash
$ CONTENTFUL_SPACE_ID= CONTENTFUL_ACCESS_TOKEN= npm run dev
```Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
```bash
$ now -e CONTENTFUL_SPACE_ID= -e CONTENTFUL_ACCESS_TOKEN=
```### With Docker
Build it with docker:
```bash
# build
$ docker build -t Blog .# or, use multi-stage builds to build a smaller docker image (for deployment to production)
$ docker build -t nextjs-app -f ./Dockerfile.multistage .
```Run it locally from [http://localhost:3000](http://localhost:3000):
```bash
$ docker run --rm -it \
-p 3000:3000 \
-e "CONTENTFUL_SPACE_ID=" \
-e "CONTENTFUL_ACCESS_TOKEN=" \
Blog
```Deploy it to the cloud with [now](https://zeit.co/now) ([download](https://zeit.co/download))
```bash
# Deploy with docker image
$ now --docker -e CONTENTFUL_SPACE_ID= -e CONTENTFUL_ACCESS_TOKEN=
```