BastienRiv / portfoliomanager

Portfolio manager for neueda training course
0 stars 0 forks source link

Portfolio Manager

A portfolio manager for beginners.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Pre-requisites

Getting Started

  1. Clone the repository:

    git clone https://github.com/BastienRiv/portfoliomanager.git
  2. Install dependencies:

    cd portfoliomanager/
    npm install express
    npm install mysql2
    npm install dotenv
    npm install cors
  3. Create a .env file:

    In the root of your project directory, create a file named .env and add the following content to it:

    host=xxxx
    user=xxxx
    password=xxxx
    database=xxxx
    port=xxxx

    Replace xxxx with your actual database credentials.

  4. Build and run the project:

    npm run start

    Navigate to http://localhost:4001 in your web browser.

If you want to use a dockerised database, you can run docker compose up -d to use the database

Pages