/mywallet-back

Fullstack web app (back part) of Wallet type, managing transactions.

Primary LanguageJavaScript


Logo

My Wallet

💸 A useful app if you have money to manage 💸
Explore the docs »
View Demo

About the project


An animated gif to introduce you to this simple, but very pleasant full-stack project I manage to accomplish!


Built with


Getting Started

  • Want to simply try it? Access demo by clicking here!

  • Want to run frontend in local environment whitout backend local? Learn how on README in frontend repository by clicking here!

  • Want to run front and backend local? Keep reading then!


Prerequisites

  • npm

Installation

  1. Clone backend repo
git clone https://github.com/cybalencar96/mywallet-back.git
  1. Install dependencies executing comand in root
npm i
  1. Clone frontend repo in a different folder
git clone https://github.com/cybalencar96/mywallet-front.git
  1. Install frontend dependencies executing command in root
npm i
  1. Create a .env.development in frontend root folder with the variable below
REACT_APP_SERVER_URL=http://localhost:4000
  1. Create a .env.dev file in backend root folder with following variables
DB_USER
DB_HOST
DB_PASS
DB_PORT
DB_NAME
  1. Create a postgres database and fill .env.dev with database credentials
DB_USER=postgres
DB_HOST=localhost
DB_PASS=123456
DB_PORT=5432
DB_NAME=mywallet
  1. Run (copy & paste) the dump.sql statements in database

How to run

  1. Start backend server
npm run dev
  1. Start frontend
npm start