Brief description of the project
Full-on detail description about the project.
It can also render on a .github.io
page, use that to your advantage.
Name | Description |
---|---|
Objective | Why? |
Features | What does it have? |
Disclaimer! | Brief heads up |
Advice/Tip | Helping hand |
Documentation | How to use the system |
How to set it up? | How to use it locally |
How to deploy? | How to upload it to production |
Testing | All the testing |
Usage | How to boot the system |
CLI | The Command-Line Interface |
Legal notice | Legal notice |
License | The License we're using |
Examples | Some examples of usage |
Gratitude | Who am I thankful to |
Credits | This project was made thanks to |
What we're trying to fill/improve/fix/create.
- It should be a robust system that never breaks!
- No final customer will have any complaints about it!
- It works!
- No seriously, it does!
Use at your own risk!
Use node.js
for a same-lang environment.
All the documentation can be found either at our wiki or at our docs/
folder.
template
┣ .github
┃ ┗ actions
┃ ┃ ┗ main.yml
┣ build
┃ ┗ BUILDS_HERE
┣ docs
┃ ┗ en
┃ ┃ ┗ parameters.md
┣ src
┃ ┗ YOUR_CODE_HERE
┣ tests
┃ ┗ YOUR_TESTS_HERE
┣ tools
┃ ┗ YOUR_UTILITIES_HERE
┣ .gitignore
┣ CHANGELOG.md
┣ LICENSE.md
┣ README.md
┗ _config.yml
node.js
>= 15.x.x compatibility.- Server with Apache/Nginx support.
git clone https://github.com/jofaval/template
For the usage take a look at the Use
section
- The
public/
folder must always be the main one to use - NO PRIVATE KEYS!! Check that you're putting all the information into
secrets
or.env
s
Push directly into master
/main
all the changes, and merge them
deploy.sh
Any disclaimer about your testing
Execute the test.bat
or
npm test
or with PHP
phpunit UnitTest
Show instructions
Create a new describe
call with the name
and lambda
function
describe('Customer', () => {
});
or with PHP
Create a new class in the tests/
folder that extends from TestCase
class CustomerTest extends TestCase
{
}
Show instructions
Create a new it
call with all the asserts you want
describe('Customer', () => {
it('Create a customer', async () => {
const customer = createCustomer({
'name': 'John',
});
expect(customer.name).toEqual('John');
});
});
or with PHP
Inside that new class, create a new describe
method that starts with test
and follows the camelCase
class CustomerTest extends TestCase
{
# code...
public function testName(): void
{
$this->assertEquals($this->customer->name, 'John');
}
# code...
}
Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.
The page will reload when you make changes.
You may also see any lint errors in the console.
Launches the test runner in the interactive watch mode.
See the section about running tests for more information.
Builds the app for production to the build
folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Starts the server
How to use the CLI
How does it improve the workflow
cli make endpoint
This project can't and won't be used in NFTs.
This project uses the ISC License
, take a look at it here
console.log('The answer is 42.');
- Linus Torvalds, for creating
Git
- https://soulaimanghanem.medium.com/github-repository-structure-best-practices-248e6effc405
- The internet community
WholesomeMemes
on Twitter- Markdown tables using: https://www.tablesgenerator.com/markdown_tables