Go, React and MySQL Boilerplate
- Go - Go programming language
- NodeJs
- NPM - Node package manager
- MySQL - Relational database management system (RDBMS)
- PostgreSQL - Relational database management system (RDBMS)
On the command prompt run the following commands:
$ cd workspace
$ git clone https://github.com/Bikranshu/go-react-boilerplate.git
$ cd go-react-boilerplate
$ cd src
$ go get github.com/{package-name} # Download a particular remote package.
$ cp env.yaml.example env.yaml # Edit it with your secret key and database information.
$ swag init [Optional] # Run this command if you have added new entity CRUD operation.
Finally, start and build the application:
$ go run main.go
$ go build
Import users.sql
for default user:
- username: [email protected]
- password: 1234
URL : http://localhost:3000/
Navigate to http://localhost:3000/swagger/ for the API documentation.
- Object Relational Mapping(ORM) - GORM
- Environment Configuration - Viper
- Structured Logger - Logrus
- JSON Web Tokens - JWT
- Password Hash & Salt - bcrypt
- Cross Origin Resource Sharing - CORS
- URL router and dispatcher - gorilla mux
- Redis Client - redis
- API Documentation - swag and http-swagger
- Modern build setup with no configuration - Create React App
- JavaScript library for building UI - React
- Predictable state container - Redux
- Declarative routing for React - React-Router
- Promise based HTTP client - Axios
- React UI library - Ant Design
- Pluggable JavaScript Linter - ESLint
- Opinionated Code Formatter - Prettier