GithubHelp home page GithubHelp logo

hoardgames-backend's Introduction

HoardGames Backend

This is the backend for HoardGames, a web application that allows users to track their board game collection, rate and review their games, and search for new games to add to their collection.

Features

  • Board Game Search: The backend interacts with the BoardGameAtlas API to search for board games using keywords and other parameters. The search results are returned to the frontend as JSON.
  • Collection Management: The backend receives requests from the frontend to add, update, delete, and retrieve board games in the user's collection. These operations are performed on a PostgreSQL database using the Knex.js library.

Technical Details

This app is built using Node.js and the Express framework for the backend. PostgreSQL is used as the database management system, and Knex.js is used as the query builder.

Installation

To run this app on your local machine, follow these steps:

  1. Clone the repository to your machine.

  2. In the root directory of the project, run npm install to install the dependencies.

  3. Create a PostgreSQL database for the app to use.

  4. Create a .env file in the root directory of the project and add the following lines, replacing the values in square brackets with your actual values:

    DB_HOST=localhost
    DB_NAME=your_database_name
    DB_USER=your_database_user
    DB_PASSWORD=your_database_password
    
  5. Run npm run knex migrate:latest to set up the database schema.

  6. Run npm start to start the server.

  7. The backend will be running on http://localhost:5000.

Frontend

The frontend for this app can be found here.

hoardgames-backend's People

Contributors

amekatze avatar

Watchers

 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.