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.0
installedyarn
ornpm
package manager installed but i preferyarn
docker
installed on your desktop or server
Then go and run in terminal
docker-compose build
to build up all images and attache them to containersdocker-compose up
to run all 4 containers (node app
,mongo
,postgress
andpostgress admin
)
just those command will make app stand but there are also other usefull commands
yarn build
to build app from typescript to js appyarn debug
to run app in debug modeyarn dev
to start app in development modeyarn start
to 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