GithubHelp home page GithubHelp logo

kirubeltadesse / sap-ui Goto Github PK

View Code? Open in Web Editor NEW

This project forked from swarmies/sap-ui

0.0 1.0 0.0 983 KB

This is a frontend code for Sap-Web

Shell 0.89% TypeScript 83.78% CSS 4.69% HTML 7.66% Dockerfile 2.99%

sap-ui's Introduction

UI Readme

The frontend is built using React and Redux. The backend is built using Django and Django Rest Framework. It uses nodejs and npm for package management. Make sure you have the right version of nodejs installed. You can check the version by running node -v in your terminal. The version should be v18.2.0. If you don't have the right version installed, you can install it here.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

you can use nvm to install the right version of nodejs. You used the command below to install nvm.

nvm install 18.2.0

then

nvm use 18.2.0

you can run the command below to start the frontend server.

npm start
  • formating you should automatically be able to format the code based on typescript requirements if not you can run this command on the fill
npx prettier --write SignIn.tsx

Running the tests

You can run the command below to run the tests

npm test

Installing the application as a root user

Note: we are using an ash shell therefore you can log in to the root user once you have logged into the container by using

su -

Running in debug mode

There is a launch.json file inside the .vscode folder. There are Debug UI and Debug Typescript(UI) pre-defined options that run the frontend in debug mode. you can launch one of the options, put breakpoints in the code and step through the code line by line.

package related issues

If you have package-related issues, you can first see what package is causing the problem. Using

npmvet -r inlinetable
npm outdate

update/install a package

  1. uninstall using npm uninstall <packagename>
  2. remove the npm-shrinkwrap file rm npm-shrinkwrap
  3. modify the package.json to the specific package version or install the new package
  4. using npm i or npm i <packagename> depending upon step 3 specific
  5. finally use the npm shrinkwrap --include=dev to create the npm-shrinkwrap.json file again

Fix npm issues

  1. npm cache clean --force
  2. rm -rf node_modules
  3. rm package-lock.json or rm npm-shrinkwrap.json depending on what you have locally
  4. npm install

Break down into end-to-end tests

You can have the backend running and run the command below to run the end-to-end tests.

sap-ui's People

Contributors

dinaolmelak avatar kirubeltadesse avatar

Watchers

 avatar

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.