GithubHelp home page GithubHelp logo

lunch_and_learn_be's Introduction

Lunch and Learn

Introduction

Lunch and Learn is an educational API that provides recipes, historical videos, and other fun and useful information about various countries. It also features user CRUD functionality, the ability to favorite resources by user, and session CRUD and authentication functionality.

Installing Lunch and Learn API

To use the Lunch and Learn API, you will need the following:

  • Ruby Version 3.x.x or higher
  • A terminal application, such as Terminal (MacOS) or Windows Terminal (Windows)

Once these prerequisites are in place, please complete the following steps:

  1. Clone down the lunch_and_learn_be repository to your local machine, using the green Code button.
  2. Navigate to the lunch_and_learn_be repository with your Terminal application.
  3. From the terminal application, run the command bundle install
  4. In the same terminal session, run rails db:{drop,create,migrate}
  5. In the same terminal session, run rails server

Congratulations! The Lunch and Learn API is now running on your local server, and is ready for use.

Using Lunch and Learn API

The Lunch and Learn API exposes the following endpoints for user consumption:

User Endpoints

POST /users — Create User

= Expand

Creates a new user within the database, and returns a JSON response indicating either successful user creation, or unsuccessful user creation with errors.

Example Request:

POST localhost:3000/api/v1/users

Exmaple JSON Response:

{
    "success": "User created successfully!"
}

Favorite Endpoints

POST /favorites — Create User

= Expand

Creates a new user favorite for a user, and returns a JSON response indicating either successful user creation, or unsuccessful user creation with errors.

Example Request:

POST localhost:3000/api/v1/users

Exmaple JSON Response:

{
    "success": "User created successfully!"
}

lunch_and_learn_be's People

Contributors

dylan-perry 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.