alexandre-dev29 / community-blog

This is a blog template that can be used to help communities publish article and have controls on all the data

Home Page:http://blogcommunity.axelmwenze.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Community Blog

This project is a NX project for a complete blog to publish your communioty articles, with tone of features and other that are comming. The backend and the front are in the same projectπŸ˜‚ i prefered to use monorepo for this and the obvious choice for me was NX because of the great developer experience.

The frontend is built using NextJs 13 with App Directory and for the UI i have used ShadCdn for his simple and beautifull design and also highly customizable.

Other library are used for the frontend such as , TIPTAP for writing articles, and refine for 😏😏 many thnks πŸ˜‚

The Backend is written in NESTJS with prisma has ORM of choice πŸ˜‹πŸ˜‹ , i also use Castl for authorization and JWT for authentication process

the blog has the admin part or editor to publish and manage their article with a couple of other feature that are admin only such as create a new editor and management users.

How to getting start with the project

First of all the project was configure with POSTGRES for the database part but can work with any SQL or NOSQL Thanks to Prrisma. ALexandreSupabase29.. first let’s clone the project , hope that git is already install on your machine πŸ˜‘πŸ˜‘πŸ˜‘

git clone https://github.com/alexandre-dev29/community-blog.git

Then See the differents .env.example in the root of the projectt and create a .env file with the correct values for you situation.

Once done, time for the famous :

npm install  #if you are using npm
yarn install # if you are using yarn
pnpm install #if you aree using pnpm(pnpm was used for this project, don't ask me why πŸ™„)

Once done, run

npx prisma migrate dev

This will apply all the migration the the database that you configured in the .env file

once finish , now the fun part

pnpm turbo run serve # or yarn nx run api:serve if you are using yarn

πŸ₯³πŸ₯³πŸ₯³πŸ₯³πŸ₯³ now you can start publish articles and adding users with the seeding a default user has been added you can use those credential to login and start work.

Thanks

For any question fill free to ask and to contribute and most important don’t forget to give a little Star ⭐ to this repo.

About

This is a blog template that can be used to help communities publish article and have controls on all the data

http://blogcommunity.axelmwenze.dev/


Languages

Language:HTML 71.1%Language:TypeScript 27.8%Language:CSS 0.7%Language:JavaScript 0.4%