-
Download from Github or clone the repo:
git clone https://github.com/Donstesh/Messages-UI-frontEnd-React.git
-
Make sure your Node.js and npm versions are up to date for
React 18
-
Install dependencies:
npm install
oryarn
-
Start the server:
npm run dev
oryarn dev
-
Views are on:
localhost:3000
-
Sign in on Zalter Dashboard (https://dashboard.zalter.com) and create your Zalter project.
-
Open your project settings and activate Email Magic Link authentication. This authentication method requires
redirect URIs
setup, so while in development you need to addhttp://localhost:3000/sign-in/confirm
. For production replacelocalhost:3000
with your own domain. -
Copy
.env.example
file and rename it to.env
-
Open
.env
file and enable the Zalter authentication, then set your own Zalter project ID.
NEXT_PUBLIC_ENABLE_ZALTER_AUTH="true"
NEXT_PUBLIC_ZALTER_PROJECT_ID="<your-project-id>"