This project uses the sveltekit framework and sst to build and deploy to AWS a fullstack applications allowing for the search and cataloging of geospatial data.
Once you've created a project and installed dependencies with npm install
, start a development server:
-
setup your aws credentials. documentation
-
set the correct version of npm as indicated by the
.nvmrc
file. see nvm for macos/linux and nvm-windows for windows. -
open a new terminal
-
from
/
runnpm i
. -
from
/packages/web-app/
runnpm i
. A nodejs version that matches the.nvmrc
may be required. -
enshure the correct secrets are configured. (Use npx instead of pnpm).
-
enshure your login and logout url's are configured correctly in aws cognito.
- Allowed callback URLs
- Allowed sign-out URLs
-
npm run sst:dev
to deploy the required code to the cloud. -
open another terminal
-
npm run dev
to bind the the previously deployed infrastructure -
you should now be able to work on you local files and have your dev instance seamlessly connect to your aws ressources.
-
setup your aws credentials for the desired environment. documentation
-
enshure the correct secrets are configured. (Use npx instead of pnpm).
-
from
/
runnpm i
. -
from
/packages/web-app/
runnpm i
. A nodejs version that matches the.nvmrc
may be required. -
enshure your login and logout url's are configured correctly in aws cognito.
- Example allowed callback URLs
- Example allowed sign-out URLs
-
deploy from the root of the repository:
npm run sst:deploy:{dev|stage|prod}