SPE Major Project
SPE Major Project
Abstract:
Ticket system application built with the MERN stack that allow teams to manage bugs,
requests, and other support tickets.
Features:
1. DashBoard Home:We can see all the tickets submitted by the users and there
status.
2. Submit a Ticket:We can submit tickets to the users regarding some work and we
can mention their priority
3. Manage User:We can create or delete users.
4. Manage Projects:We can create or delete projects
NPM
To install NPM into our system run the command as below:
brew install npm
nodejs
To install nodejs, run the command as below:
The code is first pulled before making a push to make sure that our project is in the
latest stage and to avoid merge conflicts. For the above, the pull and push is done
on the “master” branch.
After creating a branch, required changes are done and a pull request to the main is
created.
Docker management:
Docker helps in making the software building process faster by the idea of images
and containers. Containers are isolated within the environment. Docker has also the
flexibility of building and pushing the Images to DockerHub. Dockerfile is a
simple text file that consists of a set of instructions to build Docker images
Lets look at the DockerFile which will make our Docker image:
- It creates a alpine image instead of a full node image which use less
memory, and gives better performance, security and maintainability.
- First we’ll set the base directory as app and copy all the required files
(relative from the root location )
- We’ll also copy all the files from the package.json and package-lock.jso
since they contain all the dependencies
- Now we’ll run npm install which will install all the files in the dependencies
- Now we’ ll copy all the files from the root folder of our directory and start
the production
Then we’ll build and tag the image and push it to dockerhub,this process is handled
in github actions via the docker plugin provided.