Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rashjredmund/node-express-js-template
a ready to use node js/express js template setup with typescript, sass, ejs, mongodb & mongoose.
https://github.com/rashjredmund/node-express-js-template
backend backend-service ejs ejs-template-engine ejs-templates epressjs javascript nodejs npm open-source opensource package scss template typescript
Last synced: about 1 month ago
JSON representation
a ready to use node js/express js template setup with typescript, sass, ejs, mongodb & mongoose.
- Host: GitHub
- URL: https://github.com/rashjredmund/node-express-js-template
- Owner: RashJrEdmund
- Created: 2023-10-18T15:31:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-08T01:02:59.000Z (about 1 year ago)
- Last Synced: 2024-01-30T02:40:56.319Z (12 months ago)
- Topics: backend, backend-service, ejs, ejs-template-engine, ejs-templates, epressjs, javascript, nodejs, npm, open-source, opensource, package, scss, template, typescript
- Language: TypeScript
- Homepage:
- Size: 10.4 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to my node-express.js template 😌
if you are looking for a quick and ready to use typescript nodejs with express template,
look no further 😌
* * *
made with ❤️ by [RashJrEdmund](https://github.com/RashJrEdmund)
get your own copy [here](https://github.com/RashJrEdmund/node-express-js-template)* * *
## Description / Content
This template repo has been setup with
TypeScript
,SASS
,EJS
MongoDb
, andMongoose
.
Also, a simple user endpoint has been created with/users
, and the actuall schema created mongoose and MongoDb initiallized, but will need your mongo_connections url.- The app template has the following dependencies added to it.
- [bcrypt](https://www.npmjs.com/package/bcrypt)
- [jsonwebtoken](https://www.npmjs.com/package/jsonwebtoken)
- [CORS](https://www.npmjs.com/package/cors)
- [nodemon](https://www.npmjs.com/package/nodemon)
- [concurrently](https://www.npmjs.com/package/concurrently)
- [dotenv](https://www.npmjs.com/package/dotenv)## Quick start
- run
```bash
npx degit "RashJrEdmund/node-express-js-template" my-express-app
```To setup the repo locally. you can replace
my-express-app
withyour actuall app name
### Afterwards
- run
npm install
to install all neccesarry dependencies.- open package.json or run
npm run
to see all available scripts.- run
npm run dev
to start both sass:compiler and nodemone.* * *
## Files/Folders to Delete
-
readme-assets
(Folder)
- runrm -rf ./readme-assets
at the root of your project. it contains readme assest.-
README.md
(File)
- runrm -rf ./README.md
at the root of your project. it contains readme it self.* * *
## Files to edit
-
server.ts
- opensrc/server.ts
. it is the main entry point to the application.-
express.app.ts
- opensrc/services/express/express.app.ts
It here that the main middle-wares likeCORS
andexpress.json()
. Evenejs
has been setup as the templating enjine and the views directory set to views...-
express.entrypoints.ts
- opensrc/services/epress/express.entrypoints.ts
. It is here you'll setup your routes.-
config.ts
- opensrc/config/config.ts
. dotenv has been configure here, and the required configurations for ur app are here. like the db configs, app, jwt, bcrypt are all here. add anymore u see fit.-
constants.ts
- opensrc/services/constants.ts
. dotenv has also been configure here, you could add and load some of env or add constant data/state here.-
interfaces/entities.ts
- opensrc/utils/interfaces/entities.ts
. It is here you'll setup your TypeScript interfaces.* * *
## Contributing
- creat and issue, i'll review it, (review could take as long as 3days, depending on the issue).
- If it's ok, you can then work on it, the create PRs to thedev
branch.
- Your PR should be titled feature/< your fix(as shoten as possible):your github-username >
.
- Donnot or attempt force pushing.
- Donnot push your local test branches or any branches your created that donnot follow this format, and or have anything to do with your fix## Deployment
- ### Render
- hello world