Startup Connect is a platform that allows entrepreneurs to register their startups, showcase their ideas, and connect with like-minded individuals worldwide. Built with Next.js, this project aims to foster innovation and collaboration in the entrepreneurial community.
- Startup Registration: Users can register their startups and upload essential details.
- Idea Showcase: Startups can showcase their ideas, attracting potential partners and investors.
- Global Connectivity: Connect with entrepreneurs from around the world.
- Responsive Design: Optimized for both desktop and mobile users.
- Frontend: Next.js
- Styling: Tailwind CSS (or mention your styling framework)
- Database: Sanity [headless cms]
- Authentication: Next auth
- Hosting: Vercel (or specify your hosting platform)
startup-connect/
├── public/ # Static assets
├── src/
│ ├── components/ # Reusable components
│ ├── pages/ # Next.js pages (routes)
│ ├── styles/ # Global and component styles
│ ├── utils/ # Helper functions
│ ├── hooks/ # Custom hooks
│ └── database/ # Drizzle ORM configuration and schema
├── .env.local # Environment variables
└── README.md # Project documentation
Follow these steps to set up the project locally:
-
Clone the repository:
git clone https://github.com/Binary-Shade/startup-connect.git cd startup-connect
-
Install dependencies:
npm install
-
Set up environment variables: Create a
.env.local
file in the root directory and configure the following variables:AUTH_SECRET= AUTH_GITHUB_ID = AUTH_GITHUB_SECRET = NEXTAUTH_URL= NEXT_PUBLIC_SANITY_PROJECT_ID= NEXT_PUBLIC_SANITY_DATASET= NEXT_PUBLIC_SANITY_API_VERSION = SANITY_WRITE_TOKEN = SANITY_WRITE_TOKEN =
-
Run the development server:
npm run dev
Open http://localhost:3000 in your browser to view the application.
To deploy this project, follow these steps:
- Push your code to a GitHub repository.
- Connect your repository to a hosting platform like Vercel or Netlify.
- Add your environment variables in the hosting platform's dashboard.
- Deploy your project!
Add some screenshots of your application here for a better showcase.
Contributions are welcome! To contribute:
- Fork the repository.
- Create a new branch:
git checkout -b feature-name
. - Make your changes and commit them:
git commit -m "Add feature-name"
. - Push to the branch:
git push origin feature-name
. - Open a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
1 .version conflict in react 19 and sanity
npm install react@18 react-dom@18 --legacy-peer-deps
- sanity auto installation using npm
npx sanity@latest schema extract --path=./sanity/extract.json
- scripts to include :
"scripts" :{
"predev" :"npm run typegen",
"prebuild":"npm run typegen",
"typegen": "sanity schema extract --path=./sanity/extract.json && sanity typegen generate"
}
-
strategies learned during this project :
-
live content api
-
incremental statice regeneration [cache based]
-
partial pre-rendering -> static & dynamic rendering together in same route
-
unstable_after -> schedule work to execute after response is finished
"predev": "npm run typegen", "prebuild": "npm run typegen", "typegen": "sanity schema extract --path=./sanity/extract.json && sanity typegen generate"