Starter Pack Explorer is a web application that allows users to search and explore Bluesky starter packs and their members. It provides an interface to search for starter packs or users, view pack details, and see pack members.
Currently it is a simple prototype. Demo currently running on vercel.
Index is updated from these scripts.
- Demo
- Features
- Technology Stack
- Prerequisites
- Getting Started
- Scripts
- Deployment
- Project Structure
- Environment Variables
- Contributing
- License
You can view the live application here:
- Production: starter-pack-explorer.vercel.app
- Search and explore Bluesky starter packs.
- View information about starter packs and their members.
- Search for users and see the packs they are part of.
- Responsive design for mobile and desktop devices.
- Frontend: Next.js, React, TypeScript
- Backend: Next.js API Routes
- Database: MongoDB Atlas
- UI Components: shadcn/ui
- Deployment Platform: Vercel
- Node.js version 14 or higher
- npm or yarn
- MongoDB Atlas account (or any accessible MongoDB database)
git clone https://github.com/CrispStrobe/starter-pack-explorer.git
cd starter-pack-explorer
Using npm:
npm install
Or using yarn:
yarn install
Create a .env.local
file in the root of your project:
touch .env.local
Add the following environment variables to .env.local
:
# MongoDB connection string
MONGODB_URI=your_mongodb_connection_string
# Other environment variables if needed
Note: Replace your_mongodb_connection_string
with your actual MongoDB connection string. Ensure that your MongoDB instance allows connections from your development environment.
Start the development server:
npm run dev
Or with yarn:
yarn dev
Open your browser and navigate to http://localhost:3000 to see the application running.
npm run dev
: Runs the app in development mode.npm run build
: Builds the app for production.npm run start
: Starts the production server.npm run lint
: Runs ESLint to lint the code.npm run format
: Formats the code using Prettier.
The application is configured to be deployed on Vercel. Follow these steps to deploy:
-
Connect Repository:
- Log in to Vercel and import your GitHub repository.
- Ensure that the correct project is selected.
-
Set Environment Variables:
- Go to your project settings in Vercel.
- Navigate to Environment Variables.
- Add the
MONGODB_URI
environment variable:- Key:
MONGODB_URI
- Value: Your MongoDB connection string
- Environment: Select "Production", "Preview", and "Development".
- Key:
-
Deploy:
- Vercel will automatically deploy your application when you push changes to the connected branch.
- Monitor the deployment in the Vercel dashboard for any errors.
starter-pack-explorer/
├── src/
│ ├── app/
│ │ ├── api/
│ │ │ ├── packs/
│ │ │ │ └── route.ts
│ │ │ ├── search/
│ │ │ │ └── route.ts
│ │ │ └── stats/
│ │ │ └── route.ts
│ │ └── page.tsx
│ ├── components/
│ ├── lib/
│ │ └── db.ts
│ ├── styles/
│ └── utils/
├── public/
├── .env.local
├── .eslintrc.js
├── .gitignore
├── next.config.js
├── package.json
├── README.md
└── tsconfig.json
src/app/
: Contains the Next.js pages and API routes.src/components/
: Contains reusable React components.src/lib/
: Contains library code, such as database connections.src/styles/
: Contains global and component-specific styles.public/
: Contains static assets like images and fonts.
The application relies on the following environment variables:
MONGODB_URI
: The connection string for your MongoDB database.
Setting Environment Variables:
- Local Development: Add variables to
.env.local
. - Vercel Deployment: Set variables in the Vercel dashboard under "Environment Variables".
Example .env.local
File:
MONGODB_URI=mongodb+srv://username:[email protected]/database?retryWrites=true&w=majority
This is just a quickly hacked prototype. Contributions are very welcome. As my time to look after such things is very limited, so are takeovers.
This project is licensed under the MIT License.