lopenling / Application-Backend

Backend for Lopenling servies (SQL and GraphQL API)
0 stars 0 forks source link

How to setup everything from scratch? #10

Open mikkokotila opened 1 year ago

mikkokotila commented 1 year ago

Right now, let's imagine the scenario where we want to setup everything from scratch. How do we do it?

lobsam commented 1 year ago

Currently both Nodjs api server and hasura database are running on Linode.

Incase we have to setup both Nodjs api server and hasura database from scratch in Linode server:

Follow the steps:

  1. Create Linode Virtual machine [ RECOMMENDED: Ubuntu 22.04 LTS]
  2. Install Node js, npm, yarn, docker and docker-compose (note : we need docker-compose to run docker-compose file of dockerized node api server and hasura database)
  3. Install hasura-cli (hasura-cli is required for hasura migration)
  4. Clone Padma-Dictionary-Service
  5. Setup Hasura instance in Linode : Run bash script Padma-Dictionary-Service/setup-dev/setup-dev.sh, this create docker image and run docker container
  6. setup Node Api Server: Run bash scriipt Padma-Dictionary-Service/hasura-api-server/setup-dev/setup-dev.sh
McSneaky commented 3 months ago

To run whole stack one needs two parts: frontend and backend. Frontend lives in Application-Frontend repo and backend is in Application-Backend repo

Their up to date setup guide is in their own readme.md files