This is a project that helps Rwanda Coding Academy (RCA) related app's users to login with just only rca accounts just simple someone can relate this to google sign in auth where user with email can't have multiple accounts with its products.
Just with only one account you can log everywhere in rca related products
- Node js as core language technology
- Mongo DB as users credentials storage
- PostgresSql as clients and app storage
- Docker as app manager and package management
- Express ( in Typescript) as node framework
Just before initiating project make sure you meet these requirements
node ^12.20.0installedyarnornpmpackage manager installed but i preferyarndockerinstalled on your desktop or server
Then go and run in terminal
docker-compose buildto build up all images and attache them to containersdocker-compose upto run all 4 containers (node app,mongo,postgressandpostgress admin)
just those command will make app stand but there are also other usefull commands
yarn buildto build app from typescript to js appyarn debugto run app in debug modeyarn devto start app in development modeyarn startto start app in production mode
Something which may be missing up there is initiating database and tables based on prisma models
then run
npx prisma migrate dev --name "init" --preview-feature to create database models and create tables