Next, we will add two routes, one for our default that will route to index, and the other for the logged in state when we go through the /auth/discord route app.get('/', (request, response) =>. We will also use a public folder to serve our static output.css file, so create that directory, add your css in there and add this line to your code app.use('',express.static(path.join(_dirname, 'public'))) We will fix this using express routing to allow static files to show up Express Server SetupĬreate an index.js file and initialize express js. Next, we will make a dashboard.html (logged in page) ĭon't worry about the style sheet not loading. You need to login with your Discord account to access this feature. Utilize the power of ChatGPT and Dall-E with your new creative assistant. Upgrade to Premium and unlock all features of MEE6 on your server. npm install express Starter HTMLįirst, we will make an index.html (home page) Start earning money and give value to your Discord Community members. A real project would be more complex and need a few more things, but we will build off of this. Luckily, we only need express js for this project. Whether you’re part of a school club, a gaming group, a worldwide art community, or just a handful of friends that want to spend time together, Discord makes it easy to talk every day and hang out more often. Where you can stay close and have fun over text, voice, and video. Additionally, I made two pages: index.html, and dashboard.html, which will serve to direct the user to login with discord, and then show them their logged in state.Īdditionally, the "server" is handled using express js. Discord is where you can make a home for your communities and friends. I made a CSS stylesheet using tailwind that is included in the source files.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |