A simple web-based flashcard application that loads questions and answers from a CSV file.
What is the capital of France?,Paris
What is 2+2?,4
Who wrote Romeo and Juliet?,William Shakespeare
What is the largest planet in our solar system?,Jupiter
What is the chemical symbol for gold?,Au
- Load flashcards from a CSV file
- Flip cards by clicking
- Navigate between cards using Previous/Next buttons
- Responsive design
- Works on local network
- Clone the repository:
git clone [your-repository-url]
cd flashcards- Install dependencies:
npm install- Build the application:
npm run build- Start the server:
npm start-
Access the application:
- On the host computer:
http://localhost:55555 - On other devices in your network:
http://[your-host-ip]:55555 - Also the https (secured, on the 55556 port)
http://[your-host-ip]:55556version can be accessed, but my own generated certificate is not trusted by browsers.
- On the host computer:
-
To modify flashcards:
- Edit the
public/flashcards.csvfile - Format:
question,answer(one per line) - Restart the server after making changes
- Edit the
flashcard-app/
├── public/
│ ├── flashcards.csv # Flashcard content
│ └── index.html # Main HTML file
├── src/
│ ├── components/
│ │ └── Flashcard.jsx # Flashcard component
│ └── App.jsx # Main application component
├── server.js # Express server
├── webpack.config.js # Webpack configuration
└── package.json # Project dependencies
To modify the application:
- Edit the source files in the
srcdirectory - Run
npm run buildto rebuild - Restart the server with
npm start
ISC