Skip to content

enri03/Finance_Fantasy_App

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Finance Fantasy App

Project Setup

Backend Setup

  1. Start Apache and MySQL

  2. Set up backend:

    • CD to the backend folder.

    • Ensure that the .env variables match your MySQL database configuration:

      DB_CONNECTION=mysql
      DB_HOST=127.0.0.1
      DB_PORT=3307
      DB_DATABASE=laravel
      DB_USERNAME=root
      DB_PASSWORD=
    • Run the following database seeder commands (make sure to run them in the same order as provided):

      php artisan db:seed --class=UsersTableSeeder # Default user's password is 'password123'.
      php artisan db:seed --class=StockSeeder
      php artisan db:seed --class=TransactionsTableSeeder
    • To run the application, execute the following command:

      php artisan serve
    • Note: If you want to create your own user, you can use the following route (http://localhost:8000/api/add-new-client) with Postman. Make sure to provide these body parameters: name, email, password, and balance.

Frontend Setup

  1. CD to frontend

  2. Install Dependencies

    • Run the following command to install the necessary dependencies:

      npm install
  3. Start the Application

    • To start the frontend application, run:

      npm start
    • The app should now be up and running at http://localhost:3000/. By default, a user login form will be displayed. You can log in using the following credentials:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published