Skip to content

About

A social media application, where people who enjoy hiking can share their experiences.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Repository files navigation

My Trail — Backend

REST API for My Trail, a social app for hikers to share their experiences — posts with photos, user profiles, and a friend system. The React client lives in this repo under frontend/.

Features

  • JWT authentication with bcrypt password hashing (register / login)
  • Posts with image upload via multer
  • User profiles: about-me, profile pictures, friends and pending friend requests
  • Request validation with Joi

Stack

Node.js · Express · MongoDB (Mongoose) · JWT · bcrypt · multer · Joi

Structure

  • routes/ — auth, users, posts
  • models/ — Mongoose schemas
  • middleware/ + startup/ — auth guard, DB wiring
  • frontend/ — the React client

Run locally

npm install
npm start   # nodemon index.js

Requires MongoDB. Create config/default.json with your own mongoURI and jwtSecret — never commit real credentials.

Built at devCodeCamp (2021).

About

A social media application, where people who enjoy hiking can share their experiences.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages