An Express.js app enabling user authentication and post management, encompassing signup, signin, logout, and full CRUD operations on posts. Data is locally stored using the fs common core module.
- Authentication: Utilizing JSON Web Tokens (JWT) for secure authentication and authorization.
- Password Security: Employing bcrypt for enhanced password hashing and authentication.
- Protected Routes: Access to CRUD operations on posts is restricted, ensuring that only users with valid access tokens can perform these actions.
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Install dependencies by running:
npm install
- Create a .env file in the main project directory and add values for PORT , ACCESS_TOKEN_SECRET and REFRESH_TOKEN_SECRET
- Start the server by running:
npm start
- Access the application through the endpoints in requests.rest file make sure to install Rest Client extension on VS Code.
- The server will be running at
http://localhost:8080
by default.