💬What is Backend Development?
<p>Back-end</p>
Recomend using
Settings nodemon node Js
Usage
npm install nodemon --save-dev
edit file package.json at script add "start": "nodemon --inspect server.js"
Settings morgan node Js
Usage
npm install morgan --save-dev
Settings express-handlebars node Js
Usage
npm install express-handlebars
Settings node-sass node Js
Usage
npm install node-sass --save-dev
...
pip install djangorestframework
pip install markdown # Markdown support for the browsable API.
pip install django-filter
INSTALLED_APPS = [
...
'rest_framework',
]
urlpatterns = [
...
path('api-auth/', include('rest_framework.urls'))
]
Example
REST_FRAMEWORK = {
# Use Django's standard `django.contrib.auth` permissions,
# or allow read-only access for unauthenticated users.
'DEFAULT_PERMISSION_CLASSES': [
'rest_framework.permissions.DjangoModelPermissionsOrAnonReadOnly'
]
}
@SpringBootApplication
@RestController
public class DemoApplication {
@GetMapping("/helloworld")
public String hello() {
return"Hello World!";
}
}
package com.example.demo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
@SpringBootApplication
@RestController
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
@GetMapping("/hello")
public String hello(@RequestParam(value = "name", defaultValue = "World") String name) {
return String.format("Hello %s!", name);
}
}
…