This authentication example is built with: Nuxt 3 and Tailwind CSS on the frontend. Node JS( Expess JS ), TypeORM, Redis, MariaDB on the backend.
To run it on your local machine first make sure the ports 3000 and 4000 are free.
Then open two terminals in the root of the project.
To deploy the backend api:
1. Host a Redis and a MariaDB instance either in a local docker container or in a dedicated hosting service and make a .env file following the .env.sample file
2. Type cd backend
into the terminal.
3. install the dependencies by typing npm install
into the terminal.
4. Run the server by typing: ts-node index
(index.ts is the entry point of the application).
5. Upon seeing those 3 messages your node ts server instance is ready:
To deploy the frontend:
- Type
cd frontend
into the terminal. - Type
yarn install
(If you don't have yarn first donpm install -g yarn
) into the terminal to install the dependencies. - Type
yarn dev
into the terminal to run a development instance of the frontend server. - Go on
http://localhost:3000
in the browser.