Skip to content

Commit 24e8564

Browse files
authored
chore: ui (#452)
* chore: ui update ui to new design * chore: readme update readme with tailwind direction
1 parent 2ca7d40 commit 24e8564

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1120
-80206
lines changed

docker/otp-provider/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
output.css

docker/otp-provider/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ COPY . .
1212
# Install dependencies
1313
RUN yarn install
1414

15+
RUN yarn tailwind:build
16+
1517
# Build the application
1618
RUN yarn build
1719

docker/otp-provider/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ OTP Provider -> Authenticates user via email-based OTP and returns identity asse
2626
- Run `yarn dev` to start a local server
2727
- Run `yarn build` to create a javascript bundle for production deployment
2828
- Run `yarn start` to run the javascript bundle
29+
- Run `yarn tailwind` to compile the css (will hot reload)
30+
31+
## Local Env
32+
33+
The app runs locally using tsup to compile the server and client files into the `build` directory. To recompile the css on the fly, run `yarn tailwind` in another terminal.
2934

3035
## Test Data
3136

docker/otp-provider/nodemon.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"watch": ["src", ".env"],
3-
"ext": "ts",
3+
"ext": "ts,ejs,css",
44
"ignore": ["build"],
5-
"exec": "tsx --env-file=.env src/server.ts"
5+
"exec": "yarn build && yarn start"
66
}

0 commit comments

Comments
 (0)