/express-server-jwt

A simple express server that handles JWT authentication

Primary LanguageJavaScript

Forks Stargazers Issues-open Issues-closed Contributors Framework contributions welcome


Logo

Express Server JWT

A simple server with JWT authentication with the ability to create new users, and to authenticate the existing ones.
🖊️ Read the article 🐞 Report a Bug 🙋‍♂️ Request Feature

Table of Contents

  1. Endpoints
  2. Get Started
  3. Author
  4. Contributing
  5. Show your support
  6. License

Endpoints:

  • /signin - POST (email, password)
  • /signup - POST (email, password)
  • /user - GET (protected)

Get Started:

Download the repo and install all dependencies:

git clone https://github.com/alan2207/express-server-jwt
cd express-server-jwt
npm install

Configure the server:

touch config.js

# the configuration should look like this:
module.exports = {
  db: [your db url],
  port: [the port of the server],
  secret: [secret word for JWT]
};

Run the server:

npm start

Author

Contributing

contributions welcome

🤝 Contributions, issues and feature requests are welcome! Feel free to check the issues page.

Show your support

🤗 Give a ⭐️ if you like this project!

Icons from:

Icons8

License

License

📝 This project is licensed under the MIT
Feel free to fork this project and improve it