Skip to content

pdragnev/econochrono

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EconoChrono Project

Description

Manage and visualize stock data. Built with the NestJS framework for the backend and React for the frontend.

Project Structure

  • econochrono-be/: Contains all backend-related code and configuration.
  • econochrono-fe/: Contains frontend code.

Using Docker Compose

  • Docker and Docker Compose installed on your system.

To spin up the entire application stack (frontend, backend, and database) using Docker Compose, navigate to the root directory, if you're running the services for the first time and want to initialize the database with data, you need to set the INIT_DB to true environment variable. You can do this by running:

INIT_DB=true docker-compose up --build -d

After the DB and data are initialized INIT_DB is not needed:

docker-compose up --build -d

Shutting down with:

docker-compose down

After starting the services, the frontend will be accessible at http://localhost:3000 and the backend API at http://localhost:3001.

Local Setup Installation

Prerequisites

  • Node.js and npm installed (for local development).
  • Local MySQL Database

Backend

Navigate to the econochrono-be directory:

cd econochrono-be/

Then install the necessary dependencies:

npm install

To run the backend service, we need to set up local MySQl DB first and then execute:

npx prisma db push
npm run start

To generate test data:

npm run dataInit

Frontend

Navigate to the econochrono-fe directory:

cd econochrono-fe/

Then install the necessary dependencies:

npm install

Start the frontend application with:

npm run start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published