boilerplate for node express backend to make my life simpler
This is a set up I personally use when building a backend.
When you login a user, in return you get a Token. You'll want to return that token in your headers when making a axios call for post, put or delete.
- Api Doc - Documentation on all the endpoints this api comes with.
First lets fork and clone this project so its yours.
After you have it downloaded, you can run these commands to get it started.
yarn install
yarn server
When you know your app is running you are ready to make axios calls! Dependencies Included If you are planning on using this Api for a project we should start by giving it a name. Go to your package.json file and you'll want up update name, description, repository and author. You can change the users seeded data to fit your projects needs you can get creative and add as many users as you need to get your project started. Where to find 001-users.js
database
└── seeds
└──**001-users.js**
database
└── seeds
└──**002-posts.js**
You will need to run these command to make the changes.
npx knex migrate:rollback
npx knex migrate:latest
npx knex seed:run
Photos used for this api for the seeded data were provided by unsplash.com.
Fixmylife Node Api is free to anyone who would like to use it licensed as MIT.
If you use this Api feel free to let me know or if you have any feed back on things I can change or do better thats always appreciated thank you. You can email me contact@duranirving.com or drop a message in my website duranirving.com.