Linhx's note
- Backend: Nestjs + Mongodb
- Admin frontend: Vuejs + Ckeditor5 + Tailwinds
- Frontend: Nextjs + Tailwinds
Weird stack. I know, right? In the first version, the Frontend was Vuejs. I made it as a static SPA + partially publish + Prefetching. Everything was good until I want to do SEO and add today-i-learned section, it's getting hard to maintain. Then I switch to Nextjs, because I feel like Nuxt is not good enough, beside, I want to learn react also.
- Node v16.15.0
- Mongodb >= v4.0
sudo docker compose -f ./docker-compose.dev.yml up
Setup replica set after the mongo container has completly started.
sudo docker exec -it lote-mongo-1 sh /scripts/init.sh
docker compose up -d
Setup replica set after the mongo container has completly started.
docker compose exec mongo sh /scripts/init.sh
-
Update .env: base on .prod.env
-
Run
cd be npm i npm start
-
Manage by using PM2 or installing as a Linux service.
-
Update .env
-
Run
cd admin-fe npm i npm run build
-
Deploy the
dist
using a Web server like: nginx or apache2
-
Update .env
-
Run
cd fe npm i npm start
-
Manage by using PM2 or installing as a Linux service.