Car Jacked
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
- HTTP Server - Gin Gonic
- MongoDB Driver - mongodb-driver
- JWT Token Auth - dgrijalva/jwt-go