https://github.com/hardyyb2/mern-typescript
A MERN app template in Typescript
https://github.com/hardyyb2/mern-typescript
Last synced: 8 days ago
JSON representation
A MERN app template in Typescript
- Host: GitHub
- URL: https://github.com/hardyyb2/mern-typescript
- Owner: hardyyb2
- Created: 2021-02-09T14:58:11.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-05T12:41:14.000Z (over 5 years ago)
- Last Synced: 2025-01-09T10:18:30.921Z (over 1 year ago)
- Language: TypeScript
- Size: 729 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Getting Started
## MERN Typescript (mern-typescript)
## About Project -
- redux for client and database config for server are already setup
- Technologies used -
- Client
- React
- Redux
- Typescript
- Server
- Node.js
- MongoDB
- Typescript
- Other Packages used -
- client
- react-redux
- redux
- redux-thunk
- redux-logger
- react-router-dom
- axios
- typescript
- server
- express
- chalk
- cors
- dotenv
- mongoose
- morgan
- nodemon
- ts-node
- typescript
- @types/[used-packages]
- concurrently
## Get Started
### (All steps from root)
- Rename **.env.example** to **.env** in client/ and server/
- Install dependencies using (from root)
- **yarn install-all** or **npm install-all**
- Start the app (from root)
- **yarn start** or **npm start**
- Project runs live on http://localhost:3000 (client), http://localhost:3001 (server) [based on .env file config]
## Contributing
For contributing to this repo, follow the guidelines mentioned in [react-templates CONTRIBUTING.md](https://github.com/hardyyb2/react-templates/blob/main/CONTRIBUTING.md)
## Available Scripts (from root)
In the project directory, you can run:
### `yarn start`
1. - Runs the app (client) in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
- The page will reload if you make edits.\
You will also see any lint errors in the console.
2. - Buils the server repo to javascript and runs the app(server) in development mode on [http://localhost:3001](http://localhost:3001).
### `yarn dev`
1. - Same as `yarn start` but along with changes in client reflecting on page, changes in server also reload the server (using nodemon, does not build the app)