Skip to content

A social network reminiscent of Google+ with enhancements

License

Notifications You must be signed in to change notification settings

k-t-corp/pill-city

Repository files navigation

pill-city

A social network reminiscent of Google+ with enhancements

Prerequisites

  1. Open the project in VSCode using devcontainer

  2. Prepare environment files

    cp .example.env .env
    cp ./web/.env.development ./web/.env.development.local
  3. Setup AWS for development

  • Obtain an AWS account and setup admin credentials locally
    • Go to Add user UI on IAM Dashboard
    • Enter PillCityDevTerraform for User name
    • Select Programmatic access in Access type
    • Click Next: Permissions
    • Select Attach existing policies directly in Set permissions
    • Search for AdministratorAccess and select it
    • Click Next: Tags
    • Click Next: Review
    • Click Create user
    • Copy the Access key ID and Secret access key to your clipboard
    • Edit the file ~/.aws/credentials and fill in the <Access key ID> and <Secret access key>
    • Run make dev-aws-setup to provision AWS resources and add related environment variables
    • Save the resulting pill-city-dev-env.zip (right click the file in VSCode and click "Download") to your host machine because there is currently no way to persist the generated files from above steps

Run

overmind s

The API will be running at localhost:5000

Dump dummy data into server

Make sure you have the server running

make dev-dump

Use ID kele and password 1234 to log in

Run the web UI

See README for web

Run unit tests

make test

Run API database schema migration

Make sure you have the API running

make dev-release

Security

Please send security findings to admin@ktachibana.party.