8000 GitHub - acercobra/socialbyte
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

acercobra/socialbyte

Repository files navigation

SocialByte

This is a simple example of using SST v3 and AWS service to host a simple social app

Notes

  • The get started instruction assumes that you have docker install and setup and AWS CLI setup
  • In this code, the database and the user token is hardcoded. In production environment, I would setup the db environment via AWS secret and the user token would be generated from user login (Ex. AWS cognito). We hardcoding it here to keep the project simple.

Get started

  1. Clone the new repo.

  2. Set the script files to be runnable.

    chmod +x /scripts/migrateDB.sh
    chmod +x /scripts/startupDev.sh
  3. Update your user token in /infra/web. Search for "NEXT_PUBLIC_API_TOKEN" and change it to the user id you want to create post as.

  4. In a separate terminal, start the postgres database.

    ./scripts/startupDev.sh
  5. In another separate terminal tab, start the migration script.

    ./scripts/migrateDB.sh
  6. Deploy!

    npm install
    npx sst dev

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0