Coder Social home page Coder Social logo

alta-proyect's Introduction

Getting Started

Backend

  • install docker
  • sudo service docker start
  • sudo docker build -t <dir_name> .
  • sudo docker run -p 8080:8080 <dir_name>

Frontend

Environment Variables

Please add the following lines to your ".env" file located in your Root Folder. If it does not exist it needs to be created.

REACT_APP_API_DOMAIN=production
REACT_APP_CURRENCY=DKK

Testing

  • npm run test
  • a

Routes & Architecture Flow

"Display Orders" => /orders => Orders => ShopApi
"More Details" => /orders/:id => OrderDetails => OrderItem => OrderLine
"Create Order" => order/new => OrderCreate => ShopApi

Available Scripts

In the project directory you can run:

- "start": "react-scripts start"

Opens http://localhost:3000 to view it in the browser.

- "build": "react-scripts build"

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

- "test": "react-scripts test"

Runs Test files using JEST/Testing Library

- "dev": "REACT_APP_API_DOMAIN=development npm start"

Runs the app in the development mode.
Opens http://localhost:3000 to view it in the browser.

NPM packages included

  • @ant-design/icons: 4.6.4
  • antd: 4.16.13
  • axios: 0.21.4
  • react: 17.0.2
  • react-dom: 17.0.2
  • react-router-dom: 5.3.0
  • react-scripts: 4.0.3
  • react-toastify: 7.0.4

Dev dependencies included

  • @types/react-router-dom: 5.1.9
  • @typescript-eslint/eslint-plugin: 4.31.2
  • @typescript-eslint/parser: 4.31.2
  • eslint: 7.32.0
  • eslint-plugin-react: 7.26.0
  • typescript: 4.1.2
  • @testing-library/jest-dom: 5.11.4
  • @testing-library/react: 11.1.0
  • @testing-library/user-event: 12.1.10
  • @types/jest: 26.0.15
  • @types/node: 12.0.0
  • @types/react: 17.0.0
  • @types/react-dom: 17.0.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.