Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krishnanshu-saini/express-typescript-boilerplate
Quickly setup your node express project with typescript and start producing
https://github.com/krishnanshu-saini/express-typescript-boilerplate
boilerplate-template express jest-test nodejs testing typescript
Last synced: about 1 month ago
JSON representation
Quickly setup your node express project with typescript and start producing
- Host: GitHub
- URL: https://github.com/krishnanshu-saini/express-typescript-boilerplate
- Owner: kriShnanshu-saini
- Created: 2024-08-29T10:04:36.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-29T10:52:27.000Z (3 months ago)
- Last Synced: 2024-10-11T04:03:51.359Z (about 1 month ago)
- Topics: boilerplate-template, express, jest-test, nodejs, testing, typescript
- Language: TypeScript
- Homepage:
- Size: 61.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Express + TypeScript Boilerplate
This is a boilerplate for an Express and Typescript project setup.
## Run locally
Copy below mentioned command and replace in which you want to have this setup cloned and run the command
```bash
git clone https://github.com/kriShnanshu-saini/express-typescript-boilerplate.git
``````bash
npm install
```Setup environment variables in `.env` file
```env
NODE_ENV=development#Server
HOST=localhost
PORT=8000#CORS
CORS_ORIGIN=#Database
MONGO_URI=
```Modify `src/lib/config/envConfig.ts` file as per your environment variables
You can use nodemon or ts-node to run a development server. Run:
```bash
npm run dev
```