Employee payroll web app; Based off React's framework Next JS and Python's web framework Django
The backend api or application is built using Python's Web framework Django. Which provides developers with rich set of tools to use in the development of web applications.
- Official website(s) and more: https://www.djangoproject.com/ https://www.django-rest-framework.org/
The frontend application, built using JavaScript; Is based on Vercel's Next JS. A framework based of facebook's React. This provides frontenders with rich tools such as Fast refresh among others.
- Official website(s) and more: https://nextjs.org/
Testing and Quality Assurance for the frontend application is achieved using jest-enzyme, an npm package making testing easier and convenient for developers.
- Official website(s) and more: https://www.npmjs.com/package/jest-enzyme#jest-enzyme-environment
#Running the application
- Download and Install Node.JS: https://nodejs.org/en/ a. Choose the windows msi LTS installer
- Download and install Yarn: https://yarnpkg.com/getting-started/install. b. You need to get through with the Node installation before installing the Yarn Package Manager. You need to be connected to the internet while observing this step
- In the root folder where you have the package.json (Access the root folder via cmd) – run yarn install. You must be connected to the internet while doing this.
- After the above step, run yarn dev in the root folder where you have the package.json.
- After running yarn dev in the command prompt, the app will be served on http://localhost:3000.
- Open the link in your browser and you will be served the landing/home page of the application.
- Install Python and all of its dependencies https://www.python.org/downloads/ .
- If you already have python and its dependencies installed, then skip the above step.
- Create a virtual environment for the backend service using help form this link https://uoa-eresearch.github.io/eresearch-cookbook/recipe/2014/11/26/python-virtual-env/ . Run python manage.py runserver in your terminal; This should be done in the root folder where you have manage.py.
- The backend apis will be served on http://localhost:8000.