Skip to content

BackEnd Boilerplate for a Blog based on Express.js, Mongoose.js & TypeScript

License

Notifications You must be signed in to change notification settings

OmiSoftCommunity/omisoft-blog-template-back

Repository files navigation

OMISOFT BLOG EXAMPLE - BACK END

npm node.js typescript

OMISOFT BLOG EXAMPLE - BACK END

Here you can find a simple boilerplate for a Blog based on React.js & Next.js. We use this code in the project SudokuPro.app

To run this app configure MongoDB url & JWT Secret in the .env.development:

MONGODB_CLUSTER_URL={{mongodb}}
JWT_SECRET={{SOME_VALUE}}
NODEMAILER_EMAIL={{SOME_VALUE}}
NODEMAILER_IMAP_PASSWORD={{SOME_VALUE}}

And run next commands:

npm run i
npm run dev

Finally, you can open next url-s:

Unit & Integration Tests

To run all tests run next command:

npm run test

To run some concrete tests, run the command:

// Replace Login.test.ts with the file you need
npm run test -- Login.test.ts

Project Structure

This blog consists of three different parts:

Preview

Preview

Created by

OmiSoft

OmiSoft.net Facebook page OmiSoft.net Twitter page

License

OMISOFT BLOG EXAMPLE is released under the MIT license.
See the LICENSE for details.