Skip to content

bambadiagne/simple_blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple blog

This is a full-stack blog made with Angular,Nest,Postgres,Docker,Prisma,AWS. I have trying to make the bests practices like SOLID principles,separation of modules...

Stack Logo
Nest.js Nest.js
Angular Angular
Docker Docker
AWS AWS
PostgreSQL PostgreSQL

Features

  • User registration and authentication and authorization(JWT refresh + CORS)
  • CRUD operations for posts
  • Comments section management
  • Storage service S3
  • Pagination and search for posts
  • Logging system(file based)

Usage

To see a demo of the blog in action, watch the video below:

video.mp4

Installation

  1. Clone the repository: git clone https://github.com/bambadiagne/simple_blog.git

  2. Create .env file based on .env.sample contents and change the values see above example:

#env.dev
NODE_ENV=development
FRONTEND_URL="http://localhost:4200"
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/blog?schema=public"
POSTGRES_USER=johndoe
POSTGRES_PASSWORD=randompassword
POSTGRES_DB=blog
JWT_SECRET="RandomSecret123@"
JWT_REFRESH_SECRET="RandomRefresh"
AWS_REGION="your-region"
AWS_ACCESS_KEY_ID="your-access-key"
AWS_SECRET_ACCESS_KEY="your-secret-access-key"
AWS_BUCKET_NAME="your-bucket-name"
#env.prod
NODE_ENV=production
API_URL="/api"
FRONTEND_URL="http://localhost:8080"
DATABASE_URL="postgresql://johndoe:randompassword@localhost:5432/blog?schema=public"
POSTGRES_USER=johndoe
POSTGRES_PASSWORD=randompassword
POSTGRES_DB=blog
JWT_SECRET="RandomSecret123@"
JWT_REFRESH_SECRET="RandomRefresh383912!"
AWS_REGION="your-region"
AWS_ACCESS_KEY_ID="your-access-key"
AWS_SECRET_ACCESS_KEY="your-secret-access-key"
AWS_BUCKET_NAME="your-bucket-name"
  1. You can use the docker-compose file it's so simple but you need that Docker installed in your device
docker-compose --env-file .env up -d

Contributing

Pull requests are welcome.Just fork and create PR!

License

MIT

About

Simple blog app using Angular,Nest,Prisma,Docker

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published