Coder Social home page Coder Social logo

mariamills / christmasjoy Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 178 KB

ChristmasJoy API: A free, open-source REST API providing a festive collection of Christmas-themed data. Built with NextJS 14, TailwindCSS, and TypeScript. Features endpoints for jokes, images, facts, songs, greetings, and more. Includes a user-friendly website and comprehensive documentation. Perfect for holiday projects.

Home Page: https://christmasjoy.dev

License: GNU Affero General Public License v3.0

JavaScript 1.20% TypeScript 98.25% CSS 0.55%
nextjs rest-api tailwindcss

christmasjoy's Introduction

ChristmasJoy API 🎄

Welcome to the ChristmasJoy API, a festive and open-source REST API designed to bring the joy of Christmas to your applications. This API, crafted with NextJS 14 and TailwindCSS, offers a variety of Christmas-themed data, perfect for creating holiday websites, apps, and more.

🎯Features

  • Endpoints: Access jokes, images, facts, songs, greetings, and more through easy-to-use API endpoints.
  • Frontend Website: A user-friendly website showcasing the capabilities of the API.
  • Documentation: Detailed documentation to get you started quickly.
  • Open Source: Free to use and contribute to, licensed under AGPL-3.0.

🖥️Tech Stack

  • NextJS 14: For a robust and scalable backend.
  • TailwindCSS & TailwindCSS Components: For a sleek and responsive frontend design.
  • TypeScript: Ensuring type safety and improving developer experience.

📚API Endpoints

  • /api/jokes: Returns a list of Christmas-themed jokes.
  • /api/images: Returns a list of Christmas-themed images.
  • /api/facts: Returns a list of Christmas-themed facts.
  • /api/songs: Returns a list of Christmas-themed songs.
  • /api/greetings: Returns a list of Christmas-themed greetings.
  • /api/recipes: Returns a list of Christmas-themed recipes. (Currently only one recipe is available)
  • /api/cookies: Returns what type of cookies Santa wants this year.
  • /api/countdown: Returns the number of months, days, hours, minutes, and seconds until Christmas. And the day of the week that Christmas falls on.

Some endpoints have optional query parameters that can be used to filter the results, such as getting a random joke or image.

For more information, visit our website and check out the API documentation.

Make a Request: Quick Start

Getting started with the ChristmasJoy API is easy. Here's a quick guide to making your first request:

Step 1: Base URL

Start with the base URL of the API: https://christmasjoy.dev/api/

Step 2: Choose an Endpoint

Select the endpoint you want to access. Here are a few examples:

  • /api/jokes for Christmas jokes.
  • /api/images for festive images.
  • /api/songs for Christmas songs.
  • Visit the API documentation for a full list of endpoints.

Step 3: Make the Request

Use a tool like curl or any HTTP client in your preferred programming language. Here's an example using curl:

curl https://christmasjoy.dev/api/jokes

Step 4: Handle the Response

The API will return a JSON response. Here’s a simple example in JavaScript using fetch:

fetch('https://christmasjoy.dev/api/jokes')
    .then(response => response.json())
    .then(data => console.log(data));

Next Steps This is just the beginning! To explore more endpoints and learn about additional parameters and response formats, please visit the website.

🚀 Getting Started

To use the ChristmasJoy API, visit our website and check out the API documentation.

Prerequisites

  • Basic knowledge of REST APIs
  • Familiarity with JavaScript/TypeScript

Installing

  1. Clone the repository
git clone https://github.com/mariamills/christmasjoy.git
  1. Navigate to the project directory
cd christmasjoy-api
  1. Install dependencies

npm install

  1. Start the development server

npm run dev

Environment Variables

To run this project, you will need to add the following environment variables to your .env file

REACT_APP_API_URL=https://christmasjoy.dev/api

👥Contributing

Contributions are very welcomed from everyone! Whether you're fixing bugs, adding new features, or improving documentation, your help makes this project better.

To contribute:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-branch).
  3. Make your changes and commit (git commit -am 'Add some feature').
  4. Push to the branch (git push origin feature-branch).
  5. Create a new Pull Request.

christmasjoy's People

Contributors

mariamills avatar

Watchers

 avatar

christmasjoy's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.