Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 1.4 KB

README.md

File metadata and controls

28 lines (20 loc) · 1.4 KB

myblog

Personalized blogging app using NestJS, React, and TypeScript

There should be a .env file for the frontend and backend.

For the frontend, add a .env file on myblog/blog-frontend and put this line of code:

REACT_APP_SERVER_BASE_URL=http://localhost:5000

For the backend, add a .env file on myblog/blog-backend and put this line of code and set your own values:

JWT_ACCESS_TOKEN_SECRET= your_jwt_access_token_secret
JWT_ACCESS_TOKEN_EXPIRATION_TIME= your_jwt_access_token_exp_time (in seconds)
JWT_REFRESH_TOKEN_SECRET= your_jwt_refresh_token_secret
JWT_REFRESH_TOKEN_EXPIRATION_TIME= your_jwt_refresh_token_exp_time (in seconds)

To run locally:

  • Navigate first to myblog/blog-backend and run npm run start

  • Then, navigate to myblog/blog-frontend and run npm run start

  • To run using Docker:

  • Navigate first to myblog/blog-backend and run docker build -f Dockerfile .

  • Then, navigate to myblog/blog-frontend and run docker build -f Dockerfile .

  • Lastly, navigate to myblog and run docker-compose -f docker-compose.yml up

  • Further plans:

  • Improve frontend design (will probably use material design or still bootstrap)
  • Add new functionalities (upload profile picture probably using firebase)