https://github.com/inevolin/react-node-go-init
A bootstrap template and example for code for a front- and backend server.
https://github.com/inevolin/react-node-go-init
bootstrap expressjs golang nodejs react sqlite3 template
Last synced: 3 months ago
JSON representation
A bootstrap template and example for code for a front- and backend server.
- Host: GitHub
- URL: https://github.com/inevolin/react-node-go-init
- Owner: inevolin
- Created: 2024-02-02T17:39:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-02T17:49:24.000Z (over 2 years ago)
- Last Synced: 2025-02-08T19:04:25.918Z (over 1 year ago)
- Topics: bootstrap, expressjs, golang, nodejs, react, sqlite3, template
- Language: TypeScript
- Homepage:
- Size: 4.98 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Bootstrap front- and backend
A bootstrap template and example code for a front- and backend server with JWT auth and CRUD operations.
This solution uses React/Typescript for frontend + Jest/Supertest + NodeJS/Express/Typescript for backend (or Go/Gin) + SQLite data store.
Note: this repo comes with auto-linting and formatting (if you use VSCode) to enforce best-practice standards.
## Back-end (NodeJS)
Quick start:
```
cd back/
yarn
yarn start # start server (with ts-node)
yarn watch # start server in dev mode
# TODO: build code with tsc or other compiler
```
## Back-end (GoLang)
Quick start:
```
cd backgo/
go install
go run .
```
Hint: server port 3000 used by default
## Front-end
Quick start:
```
cd front/
yarn
yarn react-scripts build # build server
yarn react-scripts start # start server
yarn test # run unit tests
```
Hint: if you build the server, you don't need to start it here, the back-end will serve it.
Hint: login email and password are both `admin`