/trivia-back

Primary LanguageJavaScript

Trivia Back

Welcome to the Trivia Back repository! This project is designed to provide a backend for a trivia application.

Features

  • User authentication and authorization
  • Question management (CRUD operations)
  • Score tracking
  • API for integrating with front-end applications

Getting Started

Prerequisites

  • Node.js
  • npm
  • MongoDB

Installation

  1. Clone the repository:
    git clone https://github.com/jdteheran/trivia-back.git
    cd trivia-back
    
  2. Install dependencies:
    npm install
    
  3. Create a .env file based on the .env.example file:
    cp .env.example .env
    
  4. Configure your environment variables in the .env file.

Running the Application

To start the server, run:

  1. Clone the repository:
    npm start
    

Running Tests

To run tests, use:

  1. Clone the repository:
    npm test
    

Project Structure

  • controllers/ - Contains route handlers
  • database/ - Database connection and configuration
  • models/ - Mongoose models
  • routes/ - API routes
  • services/ - Business logic
  • postman/ - Postman collection for API testing

Contributing

Contributions are welcome! Please fork the repository and create a pull request.

License

This project is licensed under the MIT License.

Contact

For more information, feel free to reach out at [jdteheran@uninorte.edu.co].