D3vd / CarJacked

Application for reporting stolen cars

Home Page:https://carjacked.now.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Car Jacked

CodeFactor

Application for reporting stolen cars

Frontend - carjacked.now.sh Backend - carjacked.herokuapp.com

Check out the API Documentation here.

Stack

  • Backend - Golang
  • Frontend - React.js
  • Database - MongoDB

Running the App Locally

Manual setup

Make sure to have MongoDB running at port 27017 or export custom mongoDB URI with export MONGODB_URI=

Download the source code and install all necessary packages

  go get github.com/R3l3ntl3ss/CarJacked

  # Move to project directory
  cd $GOPATH/src/github.com/R3l3ntl3ss/CarJacked

  # Install all dependencies
  go get -d -v ./...
  go install -v ./...

Start the Server

  # Export Secret for JWT Authentication and Admin Secret for Sign Up
  export SECRET=secret

  # Run the app
  go run .

Start the Client

Please refer the client README.md to start the client server

Using Docker Compose

The whole app can be ran locally by with a single command using docker compose as the all parts of the app are containerized.

  git clone https://github.com/R3l3ntl3ss/CarJacked
  docker-compose up

Go to http://localhost:8000 to access the Frontend. The Backend will be hosted at http://localhost:8080

Libraries and Packages Used

About

Application for reporting stolen cars

https://carjacked.now.sh


Languages

Language:Go 51.2%Language:JavaScript 38.4%Language:CSS 10.0%Language:Dockerfile 0.4%