Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/litpreet/tech-blogs
https://github.com/litpreet/tech-blogs
nextjs14 react-hook-form shadcn-ui supabase tailwindcss typescript zod-validation
Last synced: 27 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/litpreet/tech-blogs
- Owner: LitPreet
- Created: 2024-05-11T04:26:09.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-07-15T15:53:53.000Z (7 months ago)
- Last Synced: 2024-11-16T07:10:52.462Z (3 months ago)
- Topics: nextjs14, react-hook-form, shadcn-ui, supabase, tailwindcss, typescript, zod-validation
- Language: TypeScript
- Homepage: https://tech-blogs2.vercel.app/
- Size: 141 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tech Blogs
Tech Blogs is a dynamic SaaS platform where users can post their blogs and share them with a global audience. Our user-friendly interface ensures that you can easily create, edit, and manage your blog posts.
## πDemo
Explore the live project - https://tech-blogs2.vercel.app/
## πKey Features
- Blog Posting: Users can create and publish blog posts with rich text formatting and multimedia content, including code snippets for sharing technical insights.- Dashboard: Manage your blog posts effortlessly with a comprehensive dashboard. You can edit, delete, and publish posts with ease.
- Premium Content: Offer premium blog content that is accessible to readers after payment, providing a revenue stream for content creators.
- Code Snippets: Easily share code snippets within your blogs to illustrate programming concepts, tutorials, or technical solutions.
- SEO Optimization: Built-in SEO tools to help your blogs reach a wider audience.
## π οΈTech Stack
- Next.js 14
- TypeScript
- Tailwind CSS
- Supabase
- Supabase auth for Authentication
- Stripe payment gateway
- Shadcn UI for reusable components
- React Icons
- Zod for Form validation
- Next themes for theme management
- Vercel for deployment
## π Get Started
To get this project up and running in your development environment, follow these step-by-step instructions.
## π Prerequisites
In order to install and run this project locally, you would need to have the following installed on your local machine.
- [Node js](https://nodejs.org/en/)
- [NPM](https://docs.npmjs.com/getting-started)
- [Git](https://git-scm.com/downloads)
## βοΈ Installation and Run Locally#### step 1
Download or clone this repo by using the link below:
```
https://github.com/LitPreet/Tech-blogs.git
```
#### step 2
Execute the following command in the root directory of the downloaded repo in order to install dependencies:
```
npm install
```
### step 3
Execute the following command in order to run the development server locally:
```
npm run dev
```
### step 4
Open http://localhost:3000 with your browser to see the result.
## π Scripts
| Script | Action
| ------------- |:-------------
| ```npm install``` | Installs dependencies
| ```npm run dev``` | Starts local dev server at ```localhost:3000 ```
| ```npm run build``` | Build your production site to ```./dist/```
| ```npm run start``` | Start your production site locally
| ```npm run lint``` | Run ESLint |## π Environment Variables
```
SITE_URL=https://your-site-url.com
SERVICE_ROLE=your-service-role
PRO_PRICE_ID=your-pro-price-id
STRIPE_SK_KEY=your-stripe-secret-key
NEXT_PUBLIC_STRIPE_PUBLIC_KEY=your-stripe-public-key
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key
NEXT_PUBLIC_SUPABASE_URL=https://your-supabase-url.com```
## π Deployment
You can create an optimized production build with the following command:
```
npm run build
```
#### Deploy on Vercel
The easiest way to deploy this Next.js app is to use the Vercel Platform.
[Vercel Platform](https://vercel.com)