ThaiQ / IBMScholars

Apache License 2.0
3 stars 1 forks source link

IBM Cloud Deployment and Server (Backend) #1

Closed ThaiQ closed 4 years ago

ThaiQ commented 4 years ago

Massive Backend Updates

We are now able to deploy both the backend and frontend to their own separate server on the IBM Cloud Foundry.

Notifications:

Checkout Frontend at: https://ibm-goodtechscholars.mybluemix.net/ Checkout Backend's status at: https://ibm-scholars-server.us-south.cf.appdomain.cloud

Changes:

  1. Renamed api to server. From now on, backend progress should be done in server/server/new folder for your api. Then add the tables (and their names) to server/server/constants.js (follow further instructions in there as well).

  2. Basic structure is the same:

    • npm run server : to run server
    • npm start : to run frontend
  3. Added:

    • npm run deploy-server : deploy backend (AKA: the server folder) to IBM Cloud Foundry
    • npm run deploy-frontend : deploy frontend (AKA: everything but the server folder) to IBM Cloud Foundry
    • npm run add-tables : initialize new tables to the database
    • npm run remove-tables : remove all tables on the database

To deploy to the cloud, you will needed to be added as dev on the project (on the IBM Cloud) by me Pull from master and rebase as always

surabhigupta2029 commented 4 years ago

Looks great thai! Thanks for doing this :)