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:
- http://localhost:5050 with your browser to see the result.
- http://localhost:5050/swagger with your browser to see Swagger documentation.
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
This blog consists of three different parts:
OMISOFT BLOG EXAMPLE is released under the MIT license.
See the LICENSE for details.