#
Ship in 5 minutes 🚀
Before reading this, make sure you've followed the instructions of the Get started page.
#
Accessing the website and API
If you've successfully executed the Get started page commands,try going to http://localhost:8080/ ;
you should find the sample website we crafted for you.
Also, the API is accessible at http://localhost:8080/api.
#
Update .env
file
As we saw earlier, the .env
file was created automatically by the just init
command. Here is its actual content:
##> API ##
export API_BASE_URL=http://localhost:8080
export API_IP=0.0.0.0
export API_PORT=8080
export API_JWT_SECRET=TjnmN4DOWEIiRsyNsD9/ykMJNRe+u8A4UGkGMSzFDiA=
export API_JWT_TOKEN_DURATION_DAYS=7
## API configuration <##
##> Database ##
export DATABASE_URL=postgres://postgres:postgres@localhost/rustsaas
## Database <##
##> Sentry ##
export SENTRY_DSN=https://9c4f570a5a8015e6b6bf09c22cccda9f@o4507707874279424.ingest.de.sentry.io/4507707882078288
export TRACES_SAMPLE_RATE=1.0
## Sentry configuration <##
##> Misc ##
export RUST_LOG=debug
export README_APIKEY=
## Misc <##
As we're going through this tutorial, you should be able to update and remove the environment variables that aren't useful for you.