/Nuxt-Node-Auth

A simple Nuxt 3 and Node JS authentication application. To run read the Readme file.

Primary LanguageVue

Nuxt-Node-Auth

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: Screenshot_1

To deploy the frontend:

  1. Type cd frontend into the terminal.
  2. Type yarn install (If you don't have yarn first do npm install -g yarn) into the terminal to install the dependencies.
  3. Type yarn dev into the terminal to run a development instance of the frontend server.
  4. Go on http://localhost:3000 in the browser.

Here is how the website should look like: 3 (3)
3 (1)
3 (2)