https://github.com/piyushxcoder/saras_blogs
This is a simplistic blog hosting nextjs app for self hosted server
https://github.com/piyushxcoder/saras_blogs
blog cms nextjs
Last synced: about 2 months ago
JSON representation
This is a simplistic blog hosting nextjs app for self hosted server
- Host: GitHub
- URL: https://github.com/piyushxcoder/saras_blogs
- Owner: PiyushXCoder
- License: mit
- Created: 2024-07-16T13:27:17.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-07-15T17:49:51.000Z (11 months ago)
- Last Synced: 2025-07-16T11:52:39.129Z (11 months ago)
- Topics: blog, cms, nextjs
- Language: TypeScript
- Homepage: https://blog.piyushxcoder.in/
- Size: 12.6 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
A robust blogging website with AI based blog generation
## Getting Started
To run the development server:
create `.env` file
```
BASE_URL=https://localhost:3000
POSTS_DIR=./posts
DATABASE_URL=mysql://root:secret@localhost:3306/saras
LOGIN_EMAIL=
AUTH_GITHUB_ID=
AUTH_GITHUB_SECRET=
AUTH_SECRET=
```
`AUTH_SECRET` can be generated by executing `openssl rand -base64 33`
`AUTH_GITHUB_ID` and `AUTH_GITHUB_SECRET` can be generated from hithub
`NEXTAUTH_SECRET` are comma seperated allowed emails to login
```bash
# Migrate Database
pnpm dlx prisma migrate dev
# Run
pnpm dev --experimental-https
```
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
> Note: The app depends on ssl (ie, https). So when running it on production use a proxy ssl server (example, nginx).
## Screenshots
