You can replace the footer with your own name and link □.Īfter replacing the file contents, you can view the documentation page by browsing to or clicking the preview button.īefore we go any further, lets write some tests. Open views/index.html and replace the file contents with: It’s not required for a backend application but we can re-use it for API documentation. The “hello-sqlite” tempate comes with an index page. The first thing to do is delete public/client.js and public/style.css because they are not required for a backend applications. We don’t need the pre-built application because we’re building the application from scratch. The Node application is running Express and comes with a sample “dreams” application. This template includes a Node application with an SQLite database. For this tutorial, chose the “hello-sqlite” template. Once you have an account you can create a new project. If you want to follow along, you’ll need a Glitch account. You can also watch the videos for this post on YouTube. The application will have 4 RESTful API endpoints: GET /notes, GET /note/:id, POST /notes and DELETE /notes/:id. In this post we’ll build the backend API for a notes application using Node, Express and SQLite. It has a built in editor, hosts code and runs applications. Glitch allows users to collaborate and build applications. Glitch was created by Joe Spolsky’s company, who is also behind Stackoverflow and Trello. This tutorial is a series on building an application on Glitch.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |