GithubHelp home page GithubHelp logo

locaquest's Introduction

Local Quest

Local Quest is a Rails API project designed to manage users, questions, and answers. It provides endpoints to perform CRUD operations on these resources.

Getting Started

To set up and run the project locally, follow these steps:

Clone the Repository:

bash Copy code git clone Install Dependencies:

bash Copy code bundle install Set Up MongoDB:

Make sure you have MongoDB installed on your local machine. Configure the development and test databases in config/mongoid.yml. Run Migrations:

bash Copy code rails db:create rails db:migrate Start the Server:

bash Copy code rails server Now you can access the API endpoints locally.

API Endpoints

Users GET /users: Retrieve all users. POST /users: Create a new user. Questions GET /questions: Retrieve all questions. POST /questions: Create a new question. Answers GET /answers: Retrieve all answers. POST /answers: Create a new answer.

Database Configuration

The project uses MongoDB as the database. Here's the configuration for development and test environments in config/mongoid.yml:

yaml Copy code development: clients: default: database: loca_quest hosts: - localhost:27017 options: # Add your MongoDB options here

test: clients: default: database: loca_quest_test hosts: - localhost:27017 options: # Add your MongoDB options here Make sure to adjust the database settings based on your local MongoDB setup.

Dependencies

Ruby: 3.2.3 Rails: 7.1.3 Mongoid: MongoDB ODM for Rails rack-cors: Middleware for handling Cross-Origin Resource Sharing (CORS) jwt: JSON Web Token implementation for Ruby sprockets-rails: Original asset pipeline for Rails puma: Web server for Ruby applications importmap-rails: JavaScript with ESM import maps turbo-rails: Hotwire's SPA-like page accelerator stimulus-rails: Hotwire's modest JavaScript framework jbuilder: Build JSON APIs with ease bootsnap: Reduces boot times through caching

License

This project is licensed under the MIT License.

locaquest's People

Contributors

sidina09 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.