Skip to content

Happy thoughts API#35

Open
marinalendt-png wants to merge 19 commits intoTechnigo:masterfrom
marinalendt-png:master
Open

Happy thoughts API#35
marinalendt-png wants to merge 19 commits intoTechnigo:masterfrom
marinalendt-png:master

Conversation

@marinalendt-png
Copy link

Render: https://js-project-api-e8xy.onrender.com
Netlify: https://project-happy-thoughts-ml.netlify.app/

Welcome to my first backend project! A RESTful API for sharing and liking thoughts with user authentication. The Happy Thougthts API.

Features

  • User Authentication** - Sign up and log in with email/password
  • Create Thoughts** - Share your thoughts (5-140 characters)
  • Like Thoughts** - Increase heart count on any thought
  • Update Thoughts** - Edit your own thoughts
  • Delete Thoughts** - Remove your own thoughts
  • Password Encryption** - Bcrypt for secure password storage

Tech Stack

Backend:

  • Node.js
  • Express.js
    Database:
  • MongoDB with Mongoose
    Authentication:
  • access tokens
    Security:
  • Bcrypt password hashing
  • CORS

API Endpoints

Authentication endpoints:

  • POST /signup- Create new account
  • POST /login - Log in to existing account

Thoughts endpoints:

  • GET /thoughts - Get all thoughts
  • GET /thoughts/:id - Get single thought
  • POST /thoughts - Create thought (authenticated)
  • PATCH /thoughts/:id - Update thought (authenticated)
  • DELETE /thoughts/:id - Delete thought (authenticated)
  • POST /thoughts/:id/like - Like a thought

ENJOY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant