Blog CMS

Client: React, NextJs, Material UI

API: JSONPlaceholder

Install dependencies

To install dependencies, run the following command

  npm install

Running Tests

To run tests, run the following command

  • e2e tests will failed with this command, instead try the section end to end tests section
  npm run test

Running End to End Tests

To run tests, run the following command after building the app

  npx playwright test 

Running The App on dev

To run the app, run the following command set those local env variables :

  • NEXT_PUBLIC_DEFAULT_USER_PASSWORD
  • NEXT_PUBLIC_API_URL
  npm run dev

Running The App on prod

To run the app, run the following command set those local env variables :

  • NEXT_PUBLIC_DEFAULT_USER_PASSWORD
  • NEXT_PUBLIC_API_URL

To login use those credentials :

  npm run build && npm run start