Skip to content

FarmerSamuel-FS/UFC-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UFC API

This project implements a RESTful API for managing UFC fighters.

Features

  • CRUD Operations: Allows creating, reading, updating, and deleting fighter information.
  • Live Updates: Real-time updates of fighter data using WebSocket.
  • Deployment: Deployed on Heroku, accessible here.
  • Technology Stack: MERN (MongoDB, Express.js, React.js, Node.js).

Installation

To run this project locally, follow these steps:

  1. Clone the repository:
    git clone https://github.com/FarmerSamuel-FS/UFC-API.git
    cd UFC-API
    Install dependencies:

npm install in each api, and reactjs as well as npm install express mongoose path cors nodemon dotenv Set up environment variables:

Create a .env file in the root directory. Add the following variables:

DATABASE_URL="mongodb://localhost/fighters"

Start the server: main file dir UFC-API npm run dev:react Open your browser and navigate to http://localhost:3000 API Endpoints

GET /api/v1/fighters: Get all fighters. GET /api/v1/fighters/:id: Get a fighter by ID. POST /api/v1/fighters: Create a new fighter. PATCH /api/v1/fighters/:id: Update a fighter by ID. DELETE /api/v1/fighters/:id: Delete a fighter by ID. Deployment

This project is deployed on Heroku. You can access it here. here.

For Mobile Application Visit UFC-Mobile Repo

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors