bun run setupbun run appbun run build- Bun: Install from https://bun.sh/
- MongoDB: Local or cloud instance
- Node.js: (if needed for some tools)
- Docker: (optional, for containerized setup)
# In PowerShell
git clone <your-repo-url>
cd CodeFoliobun install
cd server
bun install
cd ..Create a .env file in the server/ directory:
MONGO_URI=mongodb://localhost:27017/codefolio
JWT_SECRET=your_jwt_secret
PORT=3001
FRONTEND_URL=http://localhost:3000
EMAIL_USER=your_email@example.com
EMAIL_PASS=your_email_passwordGenerate RSA keys for JWT/encryption:
openssl genrsa -out server/private_encrypted.key 2048
openssl rsa -in server/private_encrypted.key -pubout -out server/public.keyopenssl genrsa -aes256 -out server/private_encrypted.key 2048- Enter a passphrase when prompted.
- Update backend config to use the passphrase when reading the key.
- Place
favicon.ico,robots.txt, and any static assets inpublic/.
bun run setup
bun run appbun run build- Frontend: http://localhost:3000
- Backend: http://localhost:3001
docker-compose up --build- Ensure MongoDB is running and accessible
- Check
.envvalues - Keys must be in
server/and readable - If using a passphrase, backend must be configured to use it
- For email features, configure SMTP credentials in
.env - For OAuth, set up Google/Facebook credentials if needed