Skip to content

SoloFi/solo

Repository files navigation

Setup

1. Create AWS access keys by following the instructions here.

Loading access keys from a file

You can keep your AWS credentials in a file. The credentials are found at:

  • ~/.aws/credentials on Linux, Unix, and macOS;
  • C:\Users\USER_NAME\.aws\credentials on Windows

If the credentials file does not exist on your machine, create it. The file should have the following format:

[default]
aws_access_key_id = <YOUR_ACCESS_KEY_ID>
aws_secret_access_key = <YOUR_SECRET_ACCESS_KEY>

Loading from environment variables

SST automatically detects AWS credentials in your environment and uses them for making requests to AWS. The environment variables that you need to set are:

  • AWS_ACCESS_KEY_ID
  • AWS_SECRET_ACCESS_KEY

2. Install the dependencies

SST CLI

curl -fsSL https://ion.sst.dev/install | bash

Make sure to source your shell profile or restart you shell after running the command above.

Node Modules

Using Bun

$ bun install

Using NPM

$ npm install

3. Run the setup script

$ npm run setup

Set the SST secrets

$ sst secret set APIToken <YOUR_API_TOKEN>
$ sst secret set JWTSecret <YOUR_JWT_SECRET>

4. Run the dev environment & deploy the stack

$ npm run dev

5. Create a new user

Navigate to http://localhost:3000/signUp and create a new user. Use the API_TOKEN from the setup script for the Access key field. You can also find this value in your .env file.

Releases

No releases published

Packages

No packages published

Languages