Skip to content

Personalized blogging app using NestJS, React, and TypeScript

Notifications You must be signed in to change notification settings

altristan/myblog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)
  • About

    Personalized blogging app using NestJS, React, and TypeScript

    Resources

    Stars

    Watchers

    Forks

    Releases

    No releases published

    Packages

    No packages published