Code Monkey home page Code Monkey logo

search_ghipy's Introduction

Getting Started

This project is a simple application that allows you to search for gifs on Giphy and save the search history of the user. To execute this project, you need to follow the steps below.

You need have Node.js installed on your machine and PostgreSQL database.

Setup

Follow these steps to get your development environment set up:

  1. Create a database on your PostgreSQL server.

  2. Create a .env.local and .env file in the root of the project and add the following environment variables or follow the .env.example file:

    1. API_KEY - API key provided by Giphy.
    2. DATABASE_URL - URL to connection database, with username, password, host, port, and database name.
  3. Install dependencies in the root of the project with npm install or yarn install.

  4. Run npx prisma migrate dev to create the database tables.

  5. Run npm run dev or yarn dev to start the development server.

API

In this project, we have two API routes:

  1. /api/history - This route is responsible for returning the search history of the user.
  2. /api/search - This route is responsible for searching for gifs on Giphy and saving the search history of the user.

Tech Stack

search_ghipy's People

Contributors

odanieldcs avatar

Stargazers

 avatar

Watchers

 avatar  avatar

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.