fsxNet Wiki

BBS Development & Resources

User Tools

Site Tools


tutorials:crystal_bbs:part_one

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
tutorials:crystal_bbs:part_one [2017/03/19 23:57]
sardaukar
tutorials:crystal_bbs:part_one [2018/03/29 01:58] (current)
Line 17: Line 17:
 This will create the skeleton inside the ''​bbs''​ subfolder of the current directory. Jump into it and have a look around at the files created. ​ This will create the skeleton inside the ''​bbs''​ subfolder of the current directory. Jump into it and have a look around at the files created. ​
  
-One thing the app creator leaves out is an easy way to compile the project - we //can// just type ''​crystal build src/bbs.cr --release -o bbs_release''​ every time we want to compile, but that would get old really ​quick. So instead we'll create a ''​Makefile''​ and use good old //make// to perform all these repetitive tasks on the project. Here's how it could look:+One thing the app creator leaves out is an easy way to compile the project - we //can// just type ''​crystal build src/bbs.cr --release -o bbs_release''​ every time we want to compile, but that would get old real quick. So instead we'll create a ''​Makefile''​ and use good old //make// to perform all these repetitive tasks on the project. Here's how it could look:
  
 <code make> <code make>
Line 136: Line 136:
 </​code>​ </​code>​
  
-This is the method called in ''​bbs.cr''​ (our main entry point for the whole project)_after ​instantiating a new instance of the ''​Main''​ class. At this stage, it just prints out the hash parsed from the ''​config.yml''​ file that we created.+This is the method called in ''​bbs.cr''​ (our main entry point for the whole project) ​after instantiating a new instance of the ''​Main''​ class. At this stage, it just prints out the hash parsed from the ''​config.yml''​ file that we created.
  
 <code ruby> <code ruby>
Line 242: Line 242:
 </​code>​ </​code>​
  
-Much better! This concludes part one of the tutorial, tune in soon for part two where we will be negotiating features with the client! For reference, here's the whole code for the ''​src/​bbs/​main.cr''​ file:+Much better! This concludes part one of the tutorial, tune in soon for [[tutorials:​crystal_bbs:​part_two|part two]] where we will be negotiating features with the client! For reference, here's the whole code for the ''​src/​bbs/​main.cr''​ file:
  
 <code ruby> <code ruby>
tutorials/crystal_bbs/part_one.1489967845.txt.gz ยท Last modified: 2018/03/29 01:58 (external edit)