Skip to content

jeevanvishnu/Vocabulary-hub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 

Repository files navigation

Vocabulary Hub

Vocabulary Hub is a full-stack web application designed to help users learn and manage vocabulary efficiently. It combines a modern React frontend with a robust Node.js/Bun backend to deliver a seamless learning experience, featuring AI-powered capabilities and secure data management.

Tech Stack

Frontend (my-app)

Backend (backend)

Project Structure

vocabulary-hub/
├── my-app/         # Frontend application
│   ├── src/        # Source code
│   └── ...
├── backend/        # Backend server
│   ├── src/        # Server logic (Routes, Config, etc.)
│   └── ...
└── README.md       # Project documentation

Getting Started

Follow these steps to set up the project locally.

Prerequisites

  • Node.js (Latest LTS recommended)
  • Bun (Required for backend scripts as configured)
  • MongoDB (Local instance or Atlas URI)

Installation

  1. Clone the repository:

    git clone <your-repo-url>
    cd "Vocabulary Hub"
  2. Setup the Backend:

    Navigate to the backend directory:

    cd backend

    Install dependencies:

    bun install
    # or
    npm install

    Environment Variables: Create a .env file in the backend directory and add the necessary variables:

    PORT=3000
    MONGO_URI=your_mongodb_connection_string
    # Add other keys as required (e.g., OPENROUTER_API_KEY)

    Start the server:

    bun start
    # or for development mode
    bun run dev
  3. Setup the Frontend:

    Open a new terminal and navigate to the my-app directory:

    cd my-app

    Install dependencies:

    npm install

    Start the development server:

    npm run dev

    The frontend will essentially run on http://localhost:5173 (default Vite port).

Scripts

Frontend (my-app)

  • npm run dev: Starts the Vite development server.
  • npm run build: Compiles TypeScript and builds the app for production.
  • npm run lint: Runs ESLint to check for code quality issues.
  • npm run preview: Previews the production build locally.

Backend (backend)

  • bun start: Runs the server using bun run server.ts.
  • bun run dev: Runs the server in development mode using nodemon.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

About

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors