Accounting Notebook
Responsibilities
-
Create credit and debit transactions.
-
List all transactions.
-
Find a transaction by id.
-
Get balance status of the account.
Information about the API endpoints may be found here
Running the app
To run the app open a terminal and located in the project's root directory execute
$ npm install
$ npm install client/
$ npm run start
Launching details
In case of needing to launch the server and the client separately, here can be found info about each one:
The command shown executes the following sentences, which may be run separately if preferred, as detailed below.
Install the project dependencies to launch client and server simultaneusly
$ npm install
Install the application frontend dependencies
$ npm install client/
Build the backend docker image and name it "api-img"
$ docker build -t api-img ./server
Launch a container based on the image "api-img" previusly created
$ docker run -p 8080:8080 api-img
Launch a container based on the image "api-img" previusly created, mapping it's internal port 8080 with the host port 8080
$ docker run -p 8080:8080 api-img
Move to the client directory and launch the React App
$ cd client/ && npm run start