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.
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.
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
You can run the command below to run the tests
npm test
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 -
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.
If you have package-related issues, you can first see what package is causing the problem. Using
npmvet -r inlinetable
npm outdate
- uninstall using
npm uninstall <packagename>
- remove the npm-shrinkwrap file
rm npm-shrinkwrap
- modify the package.json to the specific package version or install the new package
- using
npm i
ornpm i <packagename>
depending upon step 3 specific - finally use the
npm shrinkwrap --include=dev
to create the npm-shrinkwrap.json file again
npm cache clean --force
rm -rf node_modules
rm package-lock.json
orrm npm-shrinkwrap.json
depending on what you have locallynpm install
You can have the backend running and run the command below to run the end-to-end tests.