Portal for TNP Cell of IIIT Raichur.
- api - REST API
- src
- database - interaction with db
- user - new user and session management
(RAW)
- NodeJS
- dotenv
- Postgres
- Redis
(Docker and Docker Compose)
- Docker
- Docker Compose
Note: use docker for database (or ease)
- Clone repo
- Install packages
yarn install
- Create database
tnp_portal
in postgres (Use psql or anything of choice) - Enable expiry notifications in redis
config set notify-keyspace-events Ex
- Setup
.env
- correct db url
- correct redis url
- enable database sync (Set
TNP_PORTAL_SYNC_DB
totrue
; at least for first time)
- Start development server using
yarn dev
With current configs, image should be built every time on changes.
- Clone repo
- Run
docker-compose up -d
If there are changes in files build the image again using
docker-compose build
.