This project is a Node.js application for managing a blog, built with the Serverless framework and Express.js. It uses MongoDB for data storage, with Mongoose as the ORM. The application includes features such as user authentication using JSON Web Tokens (JWT), password hashing with bcrypt, and more.
- Node.js
- Serverless Framework
- Express.js
- MongoDB
- Mongoose
- JSON Web Tokens (JWT)
- bcrypt
- Clone the repository.
- Install dependencies using
npm install
. - Configure your environment variables within a
.env
file, with a sample provided in the.env.sample
file. - Globally install serverless
npm install -g serverless
. - To locally start serverless
sls offline
. - To deploy the project at any time, execute
sls deploy
. However, ensure you've set up the appropriate provider (AWS, Azure, etc.) before deploying.
- Register an account or login if you already have one.
- Create, edit, or delete blog posts.
- View and comment on existing blog posts.