Skip to content

Conversation

@snmln
Copy link
Collaborator

@snmln snmln commented Mar 3, 2025

This PR is meant for visibility on the Strapi demo work. This branch should NOT BE MERGED TO MAIN. This demo will not be visible through the netlify preview functionality.

To run this PR locally see the Getting Started section below.

To Do's:

  • Create Docker for Strapi
  • Create Docker for Next-js Instance
  • Create Docker for Postgres DB
  • Create Stories collection type
  • Integrate Stories API fetching and consumption
  • Implement Strapi preview functionality
  • Create image component type
  • Create title component type
  • Create Paragraph component type
  • [ ] Create Dataset collection type Outside of scope
  • Integrate image component fetching and consumption
  • Integrate title component fetching and consumption
  • Integrate Paragraph component fetching and consumption
  • [ ] Integrate Dataset collection fetching and consumption Outside of scope

Getting Started:

To start a local version of the demo follow the instructions below.

  1. Ensure that you have docker installed on your machine. If you do not have docker see the setting up docker section below.
  2. Navigate to the /root of the project
  3. Run Docker compose up this will build the necessary containers. Caution: This step will take considerable time on initial build.
  4. Once your upload database with DB file 'Need to Add file'
  5. To restore from a backup run the command cat <backup-file-name.sql> | docker exec -i postgres psql -U postgres
    The most recent backup is located here: _db_backups/pgsql_backup_2025-04-16.sql
    All backups are authored to the _db_backups/ folder, replace the <backup-file-name.sql> in the script with the most recently authored file.
  6. To Create a backup of your postgres DB run the command yarn db-gen-backup

Running Strapi:

Assuming that the containers were built successfully from the previous step you can begin to interface with the strapi ui

  1. You might be prompted with one of 2 setup interfaces,

  2. If you are presented with a standard login screen, the login credentials are the following:
    Username: [email protected]
    Password: Password1

  3. If you are presented with a "first time setup" interface, you will be prompted to establish your own Admin credentials.
    *Be sure to retain these credentials in some manner. If they are lost you will need to delete the docker volumes, image, and container, and rebuild strapi

  4. Once logged in, you can start your local version of the front-end. Open an additional terminal window at the /root of the project run yarn dev
    *For the Strapi preview functionality the front-end application needs to be running on localhost:3000. The preview functionality will take a moment to build for the first view

Setting up Docker:

  • Download Docker for your machine here
  • Check that you are using docker engine v27.4.0, to confirm navigate to the gear icon in the top right -> Docker engine

@netlify
Copy link

netlify bot commented Mar 3, 2025

Deploy Preview for veda-ui-next-test failed.

Name Link
🔨 Latest commit 9c44943
🔍 Latest deploy log https://app.netlify.com/sites/veda-ui-next-test/deploys/67ffd641b0c2c1000835c484

@snmln snmln changed the title DO NOT MERGE: Strapi demo [DO NOT MERGE] Strapi demo Mar 4, 2025
@hanbyul-here hanbyul-here linked an issue Mar 4, 2025 that may be closed by this pull request
@netlify
Copy link

netlify bot commented Apr 15, 2025

Deploy Preview for stellar-horse-21a837 failed.

Name Link
🔨 Latest commit 9c44943
🔍 Latest deploy log https://app.netlify.com/sites/stellar-horse-21a837/deploys/67ffd64179469f00088f384b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strapi demo to determine architecture

2 participants