A Node.js web application to fetch random posts from Reddit subreddits.
- Fetch random posts from r/AskReddit and r/AskRedditEspañol
- Dark/Light theme toggle
- Bilingual support (English/Spanish)
- Responsive design
- Node.js (v14 or higher)
- npm (Node Package Manager)
- Clone the repository:
git clone https://github.com/Metaheuristic08/reddit-picker.git
cd reddit-picker- Install dependencies:
npm install- Build the React application:
npm run build- Start the server:
npm startThe application will be available at http://localhost:3000
For development mode with auto-rebuild:
npm run devThen in a separate terminal, start the server:
npm startreddit-picker/
├── server.js # Express server
├── package.json # Node.js dependencies and scripts
├── webpack.config.js # Webpack configuration
├── src/ # React source files
│ ├── index.js # React entry point
│ ├── index.html # HTML template
│ ├── App.jsx # Main App component
│ ├── App.css # App styles
│ └── components/ # React components
│ ├── ThemeToggle.jsx
│ ├── LanguageToggle.jsx
│ ├── RedditButtons.jsx
│ └── PostCard.jsx
├── dist/ # Built React application (generated)
├── public/ # Legacy static files (deprecated)
└── README.md # This file
- Backend: Node.js, Express.js
- Frontend: React 18, JavaScript (ES6+)
- Build Tools: Webpack, Babel
- UI Framework: Bootstrap 5
- Icons: Font Awesome
ISC