Skip to content

isaiahasanchez/react-progress-app-backend

Repository files navigation

Progress Exercise Log - Backend

This repository contains the backend API for the Progress Exercise and Rehab Log App, a platform for tracking and logging rehabilitation exercises.

Click here to go to the frontend. https://github.com/isaiahasanchez/react-progress-app-frontend

progress exercise

Table of Contents

Features

  • User authentication and session management
  • CRUD operations for exercises (Create, Read, Update, Delete)
  • Secure MongoDB storage
  • Error handling and validations

Technologies Used

  • Node.js
  • Express.js
  • MongoDB with Mongoose
  • Passport.js for authentication
  • CORS for cross-origin handling

Getting Started

Prerequisites

  • Node.js
  • MongoDB URI

Setup

  1. Clone this repository:
    git clone https://github.com/isaiahasanchez/react-progress-app-backend.git
  2. Navigate to the project directory
    cd your-repo-name
    
  3. Install Dependencies:
    npm install
    
  4. Create a .env file in the root directory and set up your environment variables:
    MONGO_URI=your_mongodb_uri
    SESSION_KEY=your_session_key
    
  5. Start the server
    npm start
    

Endpoints

  • /exercises: Fetch all exercises
  • /exercises/:id: Interact with a specific exercise (get, update, delete)
  • /login: Authenticate a user
  • /register: Register a new user
  • /logout: Log out an authenticated user

License

This project is licensed under the MIT License.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published