Skip to content

schrudolf/FullStackReactApp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FullStackReactApp

App Features:

  • Registration:
  • Login:
  • Forgot password:
    • Send email with token (default expire time one hour):
    • Token check (valid and not expired):
    • Render new password page after Token was valid:
    • Deleting used token after success password change:
  • User Settings(after login):
    • Profile
    • Details
    • Password change
      • Required current password before new password change:
    • Email change:
      • Required current password before email change:
      • Send reactivation email:
  • Send message to support
  • Logout:

Admin Features:

  • App settings:
  • Read users messages:

Options Features:

Emails (enable/disable in settings/settings.ts server side)
  • Send email after success registration:
  • Send email after success password change:
  • Activation link after registration:
  • Forgot password email with token:

Install Client/Server:

npm run install-client
npm run install-server
set up .env file for server
# App data
HOST = "localhost"
PORT = 3000

# Mysql connection
MYSQL_HOST = "localhost"
MYSQL_PORT = "3306"
MYSQL_USER = ""
MYSQL_PASSWORD = ""
MYSQL_DATABASE = "fullstackreactapp"

# Email connection
EMAIL_HOST = "smtp.gmail.com"
EMAIL_PORT = 465
EMAIL_SECURE = true
EMAIL_ADDRESS = ""
EMAIL_PASSWORD = ""
create a .htaccess file and copy it to the client build
Options -MultiViews
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.html [QSA,L]
after you created an empty database go to the server/src/settings/settings.ts file and
createDatabaseTables: true,

will create tables turn it false after created

client: {
        information: "YOUR CLIENT URL HERE"
    }

this URL will appear in the email links (forgot email, user activation etc) Sample: "YOUR CLIENT URL HERE"/user/activation/token

set the axios default URL parameter in client/src/axios/axios.js

your server ip here

const serverProxy = "https://localhost:5000"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published