Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auth and Database Integration for the Template #33

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
02bfc2b
Adding new readme
RosarioDiBartolo Dec 19, 2024
9984804
Adding next-auth handler api-route, including google provider and ses…
RosarioDiBartolo Dec 20, 2024
b058b2e
Adding provider buttons integrated with next auth
RosarioDiBartolo Dec 20, 2024
58ababf
Adding github provider
RosarioDiBartolo Dec 20, 2024
46407e7
Adding shadcdn and popover component
RosarioDiBartolo Dec 20, 2024
b05ec31
Adding user button, with logout pophover
RosarioDiBartolo Dec 20, 2024
1920a69
fixing user-button top margin
RosarioDiBartolo Dec 20, 2024
74128e9
Assing database, credentials provider, and fixing provider button
RosarioDiBartolo Dec 21, 2024
1624a49
updating to react 19
RosarioDiBartolo Dec 21, 2024
ff01436
Adding signup with credentials, (with development comments)
RosarioDiBartolo Dec 21, 2024
2a8c4a0
Updating libraries, adding warning in read me
RosarioDiBartolo Dec 22, 2024
b57658b
fixing some typo, and commenting
RosarioDiBartolo Dec 22, 2024
bf27a13
updating lock file
RosarioDiBartolo Dec 22, 2024
f0269fe
fixing id duplication in features
RosarioDiBartolo Dec 22, 2024
1f8e1f9
Updating header signin and signup buttons
RosarioDiBartolo Dec 22, 2024
725b200
Signin
RosarioDiBartolo Dec 22, 2024
cf6f9af
Working version.
RosarioDiBartolo Dec 22, 2024
65fa7a4
adding zod, plus fixing auth route bug
RosarioDiBartolo Dec 22, 2024
0dee4b7
dding react icons and loading spinner
RosarioDiBartolo Dec 22, 2024
958dda3
strating to write auth logic
RosarioDiBartolo Dec 22, 2024
9d9c35f
Implemented both signup and signin with credentials
RosarioDiBartolo Dec 22, 2024
c9058f9
Added proper error handling to forms and fields, also added navbar au…
RosarioDiBartolo Dec 22, 2024
166f000
Merge commit 'c9058f9' into database-integration
RosarioDiBartolo Dec 22, 2024
b2ffc06
deleting wrong import
RosarioDiBartolo Dec 22, 2024
fffa1a7
Adding signin and redirect in signup
RosarioDiBartolo Dec 22, 2024
9685713
Fixing liks
RosarioDiBartolo Dec 22, 2024
ba39fd9
Fixing user button color
RosarioDiBartolo Dec 23, 2024
5e8ae6e
Database page
RosarioDiBartolo Dec 23, 2024
d25d5ca
Fixing colors
RosarioDiBartolo Dec 23, 2024
a4f2555
Fixing build and type errors
RosarioDiBartolo Dec 24, 2024
34b3391
removing useSearchParams, and pasing params directly from pages, WORK…
RosarioDiBartolo Dec 24, 2024
2fd1ec4
Fixing uppercase typo in Ui folder
RosarioDiBartolo Dec 24, 2024
283a60d
Delete src/components/ui directory
RosarioDiBartolo Dec 24, 2024
b9c9f49
updateing build command
RosarioDiBartolo Dec 24, 2024
37cce42
Merge branch 'database-integration' of https://github.com/RosarioDiBa…
RosarioDiBartolo Dec 24, 2024
cba4f15
Cleaning database.
RosarioDiBartolo Dec 24, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
# testing
/coverage

# prisma
.db

# next.js
/.next/
/out/
Expand Down
86 changes: 50 additions & 36 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,61 +1,75 @@
# Startup - Free Next.js Startup Website Template
# Startup - Enhanced Free Next.js Startup Website Template

Startup free, open-source, and premium-quality startup website template for Next.js comes with everything you need to launch a startup, business, or SaaS website, including all essential sections, components, and pages.
This is a customized version of the **Startup Free Next.js Startup Website Template**. As a solo developer, I have extended the free version to include some of the features typically found in the Pro version, such as authentication and other enhancements, while maintaining the clean, high-quality design and functionality that make this template an excellent starting point for startups, SaaS, or business websites.

If you're looking for a high-quality and visually appealing, feature-rich Next.js Template for your next startup, SaaS, or business website, this is the perfect choice and starting point for you!
## ✨ Key Features (Enhanced Free Version)

### ✨ Key Features
- Crafted for Startup and SaaS Business
- Next.js and Tailwind CSS
- All Essential Business Sections and Pages
- High-quality and Clean Design
- Dark and Light Version
- TypeScript Support
and Much More ...
- **Crafted for Startup and SaaS Business**: Designed to meet the unique needs of startups and SaaS companies, ensuring a strong foundation for growth.
- **Next.js and Tailwind CSS**: Combines the power of Next.js for fast, scalable applications with the modern, responsive design capabilities of Tailwind CSS.
- **Authentication Integration**: Implements user authentication, enhancing security and enabling personalized user experiences.
- **All Essential Business Sections and Pages**: Includes critical sections like About, Services, Contact, and more to cover all business needs.
- **Custom Enhancements Inspired by Pro Version**: Adds features like authentication and other improvements to bridge the gap with the Pro version.
- **High-quality and Clean Design**: Prioritizes aesthetic appeal and ease of use to create a professional web presence.
- **Dark and Light Version**: Offers theme flexibility to suit user preferences and branding.
- **TypeScript Support**: Ensures robust type safety for improved code quality and maintainability.
- **Personal Modifications for Added Functionality**: Tailored adjustments to extend the template's capabilities for a better user experience.

### 🙌 Detailed comparison between the Free and Pro versions of Startup
## 🙌 Detailed Comparison Between Enhanced Free and Pro Versions

| Feature | Free | Pro |
|---------------------|------------|----------|
| Next.js Landing Page | ✅ Yes | ✅ Yes |
| All The Integrations - Auth, DB, Payments, Blog and many more ... | ❌ No | ✅ Yes |
| Homepage Variations | 1 | 2 |
| Additional SaaS Pages and Components | ❌ No | ✅ Yes |
| Functional Blog with Sanity | ❌ No | ✅ Yes | ✅ Yes |
| Use with Commercial Projects | ✅ Yes | ✅ Yes |
| Lifetime Free Updates | ✅ Yes | ✅ Yes |
| Email Support | ❌ No | ✅ Yes |
| Community Support | ✅ Yes | ✅ Yes |
| Feature | Enhanced Free | Pro |
|-------------------------------------------|---------------|----------|
| Next.js Landing Page | ✅ Yes | ✅ Yes |
| Authentication Integration | ✅ Yes | ✅ Yes |
| Database Integration | ✅ Yes | ✅ Yes |
| Homepage Variations | 1 | 2 |
| Additional SaaS Pages and Components | ❌ No | ✅ Yes |
| Functional Blog with Sanity | ❌ No | ✅ Yes |
| Use with Commercial Projects | ✅ Yes | ✅ Yes |
| Lifetime Free Updates | ✅ Yes | ✅ Yes |
| Email Support | ❌ No | ✅ Yes |
| Community Support | ✅ Yes | ✅ Yes |

## 🚀 Demo and Deployment

### [🔥 Get Startup Pro](https://nextjstemplates.com/templates/saas-starter-startup)
- [🚀 View Free Demo](https://startup.nextjstemplates.com/)

[![Startup Pro](https://raw.githubusercontent.com/NextJSTemplates/startup-nextjs/main/startup-pro.webp)](https://nextjstemplates.com/templates/saas-starter-startup)
### ⚡ Deployment Instructions

Startup Pro - Expertly crafted for fully-functional, high-performing SaaS startup websites. Comes with with Authentication, Database, Blog, and all the essential integrations necessary for SaaS business sites.
To enable authentication and other features, make sure to create a `.env.local` file in the root of your project and add the required environment variables for all providers. For example:

```
GOOGLE_CLIENT_ID=your-google-client-id
GOOGLE_CLIENT_SECRET=your-google-client-secret
NEXTAUTH_SECRET=your-secret-key
```

### [🚀 View Free Demo](https://startup.nextjstemplates.com/)
Replace `your-google-client-id`, `your-google-client-secret`, and `your-secret-key` with the appropriate values for your project. This is essential for authentication to work properly.

### [🚀 View Pro Demo](https://startup-pro.nextjstemplates.com/)
### ⚡ Important Warning

### [📦 Download](https://nextjstemplates.com/templates/startup)
Since the React version has been updated, the `react-modal-video` dependency currently does not have a compatible version. To install dependencies successfully, you need to use the following command:

### [🔥 Get Pro](https://nextjstemplates.com/templates/saas-starter-startup)
```
npm install --legacy-peer-deps
```

### [🔌 Documentation](https://nextjstemplates.com/docs)
This ensures compatibility while installing dependencies.

### ⚡ Deploy Now

[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https%3A%2F%2Fgithub.com%2FNextJSTemplates%2Fstartup-nextjs)

[![Deploy with Netlify](https://www.netlify.com/img/deploy/button.svg)](https://app.netlify.com/start/deploy?repository=https://github.com/NextJSTemplates/startup-nextjs)

## 🐄 License

### 📄 License
Startup is 100% free and open-source, feel free to use with your personal and commercial projects.
Startup is 100% free and open-source. Feel free to use this customized version with your personal and commercial projects.

### 💜 Support
If you like the template, please star this repository to inspire the team to create more stuff like this and reach more users like you!
## 💜 Support

If you find this template and my enhancements useful, please star this repository. Your support inspires developers to create and share more amazing resources!

## ✨ Explore More

Discover other free and premium templates at [Next.js Templates](https://nextjstemplates.com).

### ✨ Explore and Download - Free [Next.js Templates](https://nextjstemplates.com)
22 changes: 22 additions & 0 deletions components.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://ui.shadcn.com/schema.json",
"style": "default",
"rsc": true,
"tsx": true,
"tailwind": {
"config": "tailwind.config.js",
"css": "src/styles/index.css",
"baseColor": "gray",
"cssVariables": false,
"prefix": ""
},
"aliases": {
"components": "@/components",
"utils": "@/lib/utils",
"ui": "@/components/Ui",
"lib": "@/lib",
"hooks": "@/hooks"

},
"iconLibrary": "lucide"
}
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
// see https://nextjs.org/docs/basic-features/typescript for more information.
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
8 changes: 8 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ const nextConfig = {
hostname: "cdn.sanity.io",
port: "",
},
{
protocol: "https",
hostname: "avatars.githubusercontent.com"
},
{
protocol: "https",
hostname: "lh3.googleusercontent.com"
}
],
},
};
Expand Down
Loading