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
- /signin - POST (email, password)
- /signup - POST (email, password)
- /user - GET (protected)
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
🤝 Contributions, issues and feature requests are welcome! Feel free to check the issues page.
🤗 Give a ⭐️ if you like this project!
Icons from:
📝 This project is licensed under the MIT
Feel free to fork this project and improve it