ProblemSolvers-Tracker

ProblemSolvers-Tracker is an API with user authentication using Node.js, Express, MongoDB and JSON Web Tokens (JWT).

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You need to have Node.js and MongoDB installed on your machine.

Installing

  1. Clone the repository

Copy code

git clone https://github.com/mostafaac30/problem-solvers-tracker-backend.git

  1. Install the dependencies

Copy code

npm install

  1. Start the MongoDB server

Copy code

mongod

  1. Create a .env file in the root of the project and add the following:

Copy code

JWT_SECRET=yoursecret
NODE_ENV=production
MONGODB_URL=mongodb://127.0.0.1:27017/appDbName
PORT=1234
  1. Start the server

Copy code

npm start

Features

  • User registration
  • User login
  • JSON Web Token (JWT) authentication
  • Hashing of password
  • Error handling

Built With

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

  • PS community
  • Leetcode