Skip to content

Instantly share code, notes, and snippets.

@Configuration
@ComponentScan
@EnableAutoConfiguration
public class Application {
@Autowired
private UserRepository repository;
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
jwt:
key: uabwenifwerfbwqyeg8fq3uwnhsrefnweio
twitter:
api-key:
api-secret:
callback: http://localhost:8080/login/twitter
github:
api-key:
jwt:
key: asgdffrt43wedsfgtry4352ewfrgt
twitter:
api-key:
api-secret:
callback: http://localhost:8080/login/twitter
github:
api-key:
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => {
res.send('Hello Express!')
})
app.post('/api/users/logon', (req, res) => {
console.log('Login post!')