This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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!') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jwt: | |
key: asgdffrt43wedsfgtry4352ewfrgt | |
twitter: | |
api-key: | |
api-secret: | |
callback: http://localhost:8080/login/twitter | |
github: | |
api-key: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jwt: | |
key: uabwenifwerfbwqyeg8fq3uwnhsrefnweio | |
twitter: | |
api-key: | |
api-secret: | |
callback: http://localhost:8080/login/twitter | |
github: | |
api-key: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Configuration | |
@ComponentScan | |
@EnableAutoConfiguration | |
public class Application { | |
@Autowired | |
private UserRepository repository; | |
public static void main(String[] args) { | |
SpringApplication.run(Application.class, args); |