This repository is a template that can be used through github to start your projects with typescript faster, offering basic and useful things in advance, it includes dependencies for test systems, lint for the quality of the code, a clean folder structure, everything needed to get started with Typescript.
This project offer a setup for node.js backend using express.js and MongoDb, contains severals example like query API, mongoDb easy CRUD, etc.
Note: This first section of the readme can be removed, it is only an explanation, the template this file begins below
Your Project Name
Write a project description
This project requires NodeJS (version 8 or later) and NPM. Node and NPM are really easy to install. To make sure you have them available on your machine, try running the following command.
$ npm -v && node -v
6.4.1
v8.16.0
BEFORE YOU INSTALL: please read the prerequisites
Start with cloning this repo on your local machine:
$ git clone https://github.com/ORG/PROJECT.git
$ cd PROJECT
Apply installation command and later you can lauch dev mode.
npm install
npm run dev
For example you can try with this endpoint:
curl --location --request POST 'http://localhost:3000/users' --header 'Content-Type: application/json' --data-raw '{
"nickname": "ssss",
"username": "sss",
"password": "elmsddd455111"
}'
After that POST Request you can see the record from your MongoDb database, you just should care about
.env
configuration file.
$ npm start
$ npm test
$ npm run build
This task will create a distribution version of the project
inside your local dist/
folder
$ npm run serve:dist
This will use lite-server
for servign your already
generated distribution version of the project.
Note this requires Building a distribution version first.
useBasicFetch(url: string = '', delay: number = 0)
Supported options and result fields for the useBasicFetch
hook are listed below.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Add your changes:
git add .
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request 😎
TODO: Write credits
- Dropwizard - Bla bla bla
- Maven - Maybe
- Atom - ergaerga
- Love
We use SemVer for versioning. For the versions available, see the tags on this repository.
- John Doe - Initial work - JohnDoe
See also the list of contributors who participated in this project.