This repository is a template for a full stack application with authentication. It is a good starting point for any full stack application that requires authentication. It uses the following technologies:
- MySQL
- Express
- React
- Node
- JWT (JSON Web Tokens)
This template is also providing Navigation Bar with links to Home, Login, and Register pages with conditional rendering based on the user's authentication status. This template is designed by react-bootstrap.
- Clone this repository
- Run
npm installin the server directory - Run
npm installin the client directory - Create a
.envfile in the root directory and add the following variables:
JWT_SECRET=secret
PORT=port- You can edit the .env file on client directory to change the port of the client
- Edit the
config.jsfile in the server directory to configure the MySQL database connection
- Run
npm startin the server directory to start the server - Run
npm startin the client directory to start the client - Navigate to
http://localhost:3000in your browser