This project contains a basic node express application to get you started. Check our tutorials for frontend development to learn the basics of HTML, CSS and JavaScript. 🦄
While you're in the editor working, the site will be running npm run dev
, which runs Nodemon, and changes to JS files or environment will restart the application. Once you close the editor, the container runs npm run start
.
To be able to fully understand and modify this template to your needs, there are several things you should know (or learn):
Do not change SQLITE_DB as it is generated. If you change it the space will not behave as predicted.
Customize this template to make it your own.
Remember to make your layout responsive - if you want your site to look good on smaller screens like mobile.
You can find static resources in the folder public
.
Dynamic spaces can use SQLite database.
The database file is called database.db
. It is placed inside the w3s-dynamic-storage
folder.
SQLite connection path to the database is w3s-dynamic-storage/database.db
which you can use to connect to the SQLite database programmatically.
Do not change the w3s-dynamic-storage
folder name or database.db
file name!
By changing the w3s-dynamic-storage
folder name or database.db
file name, you risk the space not working properly.
For now files created/uploaded or edited from within the terminal view will not be backed up or synced.
Join our Discord community and ask questions in the #spaces-general channel to get your space on the next level.
Send us a ticket if you have any technical issues with Spaces.
Happy coding!