ć A secret & secure place where you only can view your blogs š
Make sure you have node installed on your machine.
Clone the repository and install the dependenies.
npm install
Rename .env.example
to .env
Add your environmental variables in .env
file
MONGO_URI - obtained from Mongodb atlas or put uri of your local mongo server
SENDGRID_API_KEY - obtained from sendgrid
SENDGRID_FROM - registered email at sendgrid
DOMAIN_URL - your localhost port eg. http://localhost:8000
GOOGLE_RECAPTCHA_SECRET - obtained from the Google recaptcha v2
SESSION_SECRET - a random string (Eg. 'randomsecret')
Run the project
npm run start
Format code
npm run format
āāā config
āĀ Ā āāā database.js
āĀ Ā āāā passport.js
āāā controllers
āĀ Ā āāā auth
āĀ Ā āĀ Ā āāā auth.js
āĀ Ā āāā blogs
āĀ Ā āĀ Ā āāā blogs.js
āĀ Ā āāā forget
āĀ Ā āĀ Ā āāā forget.js
āĀ Ā āāā profile
āĀ Ā āĀ Ā āāā profile.js
āĀ Ā āāā reset
āĀ Ā āĀ Ā āāā reset.js
āĀ Ā āāā verify
āĀ Ā āāā verify.js
āāā index.js
āāā middlewares
āĀ Ā āāā auth.js
āĀ Ā āāā ratelimiter.js
āāā models
āĀ Ā āāā Blog.js
āĀ Ā āāā Token.js
āĀ Ā āāā User.js
āāā package.json
āāā package-lock.json
āāā public
āĀ Ā āāā css
āĀ Ā āĀ Ā āāā style.css
āĀ Ā āāā js
āĀ Ā āāā app.js
āāā README.md
āāā routes
āĀ Ā āāā auth.js
āĀ Ā āāā blogs.js
āĀ Ā āāā forget.js
āĀ Ā āāā index.js
āĀ Ā āāā profile.js
āĀ Ā āāā reset.js
āĀ Ā āāā verify.js
āāā services
āĀ Ā āāā sendgrid.js
āāā utils
āĀ Ā āāā date.js
āāā validators
āĀ Ā āāā validators.js
āāā views
āāā auth
āĀ Ā āāā login.ejs
āĀ Ā āāā register.ejs
āāā blogs
āĀ Ā āāā add.ejs
āĀ Ā āāā blog.ejs
āĀ Ā āāā blogs.ejs
āĀ Ā āāā edit.ejs
āāā errors
āĀ Ā āāā 404.ejs
āāā forget
āĀ Ā āāā forget.ejs
āāā index.ejs
āāā partials
āĀ Ā āāā footer.ejs
āĀ Ā āāā header.ejs
āĀ Ā āāā messages.ejs
āĀ Ā āāā navbar.ejs
āāā profile
āĀ Ā āāā changepassword.ejs
āĀ Ā āāā profile.ejs
āāā reset
āāā reset.ejs
Made with contributors-img.