Before deploying, make sure you have the following software installed on your machine:
- Node.js (v14 or newer)
- Docker (v20.10 or newer)
The following environment variables are used for deployment:
FONTAWESOME_TOKEN
: This token is used for authentication with the FontAwesome service. You need to obtain a valid token from your FontAwesome account and use it here. Please make sure not to expose this token publicly.
- Install the dependencies:
npm install
- Run Webpack to build the project:
npm run prod
- Run the application:
swift run
You should now be able to see the application running at localhost:8080
.
For deploying to production, we recommend using Railway. Railway is a platform that allows you to deploy your application to the cloud with ease. It also provides a free tier that is sufficient for deploying this application.