Skip to content

marcosperez/portfolio-railway

Repository files navigation

App React/Node for DEMO

Both Frontend and Backend run in the same container, Its only for simplicity.

Run project with docker

docker-compose up  --build

TODO

  • Basic DDD
  • Basic Unit Test
  • Basic Integration Test
  • Translate all frontend
  • Remove all warnings in frontend
  • Add swagger
  • Add helmet
  • Add react router
  • Add basic login page
  • Add basic auth
  • Add basic Home Page for Videos
  • Add Basic (Admin)
  • Add Basic (Admin)
  • Add Basic (Admin)
  • Add Roles to auth (usuario)
  • Add Event Drive access log
  • Add middleware or something to limit temp admin users
  • Add Admin Page
    • List Users
    • "Upload" videos and descriptions
  • Read about tRPC and implement if its useful
  • Add Video Page
    • List Videos with basic filters
  • Add Cache with redis/memcache
  • Add example metrics (Standart)
  • Add example with GrapQL

Docker

Build Image

docker build . -t mdperez/node-portfolio:latest

Run Image

docker build --build-arg PORT=10000 . -t mdperez/node-portfolio:latest &&
docker container rm node-portfolio -f &&
docker run --name node-portfolio -p 10000:10000 -d mdperez/node-portfolio:latest &&
docker logs node-portfolio -f

Stop Container

docker container rm node-portfolio -f

View Logs

docker logs node-portfolio -f

RUN FRONTEND DEV

Install packages first

cd frontend && npm start

RUN BACKEND DEV

Install packages first

cd backend && npm run generate && npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published