Golephant is a backend service for searching jobs and finding companies that are hiring candidates for their open positions. The service also allows people to create their own resumes to represent them-self.
# Clone the repository
git clone https://github.com/Almazatun/golephant.git
# Enter into the directory
cd golephant/
# Install the dependencies
go mod download
In order to run the server make the following steps:
# Step 1 (Create .env file)
$ touch .env
# Step 2 (ENV variables)
* Include some env variables:
# DB
* DB_PG
* DB_DATABASE
* DB_USER
* DB_PASSWORD
* DB_HOST
* DB_PORT
# DB_EXTENSIONS
* POSTGRES_EXTENSIONS
# JWT
* JWT_SECRET_KEY
# COOKIE
* SET_COOKIE_PATH
# SMTP(GMAIL)
* SMTP_MAIL_FROM
* SMTP_MAIL_PASSWORD
* SMTP_MAIL_PORT
* SMTP_MAIL_HOST
# Build and Up
$ docker-compose up --build -d
# Stop
$ docker-compose down
# Build and Up with Swagger UI
$ docker-compose --profile swaggerapi up --build
Browse to http://localhost:3002 You can see all the documented endpoints in UI
Description | http | path |
---|---|---|
REGISTER_COMPANY | POST | BASE_URL/auth/register/company |
LOGIN_COMPANY | PUT | BASE_URL/auth/login/company |
REGISTER_USER | POST | BASE_URL/auth/register/user |
LOGIN_USER | PUT | BASE_URL/auth/login/user |
ME | PUT | BASE_URL/auth/me |
Description | http | path |
---|---|---|
UPDATE_USER_DATA | PATCH | BASE_URL/users/:userId |
GET_LINK_RESET_PASSWORD | POST | BASE_URL/users/:userId/resetPassword |
RESET_PASSWORD | PUT | BASE_URL/users/:userId/resetPassword/:token |
Description | http | path |
---|
Description | http | path |
---|---|---|
ADD | POST | BASE_URL/companies/:companyId/position |
UPDATE_RESPONSOBILITIES | PUT | BASE_URL/companies/:companyId/positions/:positionId/reponsobilities |
UPDATE_REQUIREMENTS | PUT | BASE_URL/companies/:companyId/positions/:positionId/requirements |
UPDATE | PATCH | BASE_URL/companies/:companyId/positions/:positionId |
UPDATE_STATUS | PATCH | BASE_URL/companies/:companyId/positions/:positionId/status |
DELETE | DELETE | BASE_URL/companies/:companyId/positions/:positionId |
Description | http | path |
---|---|---|
ADD | POST | BASE_URL/companies/:companyId/address |
DELETE | DELETE | BASE_URL/companies/:companyId/addressess/:companyAddressId |
Description | http | path |
---|---|---|
LIST | GET | BASE_URL/resumes/users/:userId |
CREATE | POST | BASE_URL/resumes/users/:userId |
DELETE | PUT | BASE_URL/resumes/:resumeId |
BASIC_INFO | PATCH | BASE_URL/resumes/:resumeId/users/:userId/basicInfo |
ABOUT_ME | PATCH | BASE_URL/resumes/:resumeId/users/:userId/aboutMe |
CITIZENSHIP | PATCH | BASE_URL/resumes/:resumeId/users/:userId/citizenship |
DESIRED_POSITION | PATCH | BASE_URL/resume/:resumeId/users/:userId/desiredPosition |
TAGS | PUT | BASE_URL/resumes/:resumeId/users/:userId/tags |
Description | http | path |
---|---|---|
CREATE_AND_UPDATE | PUT | BASE_URL/resumes/:resumeId/users/:userId/userEducation |
DELETE | DELETE | BASE_URL/resumes/:resumeId/userEducation/:userEducationId |
Description | http | path |
---|---|---|
CREATE_AND_UPDATE | PUT | BASE_URL/resumes/:resumeId/users/:userId/userExperiences |
DELETE | DELETE | BASE_URL/resumes/:resumeId/userExperience/:userExperienceId |