Skip to content

Let your ideas flow like bits through silicon. Watch our video tutorial here ⬇️

License

Notifications You must be signed in to change notification settings

Rod-Freedom/C18-Silicon-API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Silicon API

Let your ideas flow like bits through silicon.

License



ABOUT THE PROJECT

Overview

Welcome to Silicon API, your go-to destination for all things tech! At Silicon API, we believe that technology is not just about circuits and code but about the flow of ideas that shape our digital future. This is a back-end API to manage users, posts and likes in the most efficient way!

Our name reflects the fundamental element of the tech world—silicon chips are the bedrock of modern computing. Just as silicon enables the flow of information in electronics, we aim to enable the flow of ideas through our content, helping you to innovate and excel.

Read the documentation here.
Watch our tutorial here.



Table of Contents


(Back to the Top)

Resources

  • Models
    • For Mongoose
      • Models.
      • new schema()
      • model()
      • Model.find()
      • Model.where()
      • Model.save()
      • Model.findOne()
      • Model.findOneAndDelete()
      • Model.findOneAndUpdate()
      • Combine vanilla JS with Mongoose to alter data.
      • schema.method
      • schema.virtual().get()
  • Controllers
    • For Express.js
      • RESTful API routes with express.Router().
      • User routes with express.Router().
      • app.use() for middleware.
      • express.static() for static routes.
      • res.send().
      • res.json().
      • res.render().
      • app.route().method() routes.
      • app.get() routes.
      • app.post() routes.
      • app.delete() routes.
      • app.put() routes.
    • For JavaScript
      • ES6 modules.
      • Promises.
      • Extensive object and array destructuring.
      • Polymorphism for methods.
      • Classes and constructors.
      • Extended classes.
      • static methods.
      • async and await executions.
      • try & catch executions.
      • Structured error handling to prevent unexpected crashes.
    • For Node.js
      • NPM packages
        • Express.js
        • Mongoose

(Back to the Top)

Get Started

Watch our tutorial here.


IMPORTANT | Silicon API isn't online yet, so you'll have to run it locally.


Once you have the repo on your computer after running git clone, open your command line. Make sure to open the Silicon API repo folder in your terminal. Use npm i to install all the modules needed to run Silicon API.

First clone:

$ git clone https://github.com/Rod-Freedom/C18-Silicon-API.git

Finally, install the modules, and you're ready to go:

$ npm i

(Back to the Top)

Usage

Watch our tutorial here.

IMPORTANT | Silicon API isn't online yet, so you'll have to run it locally.


Silicon API is purely back-end. To run it locally, open the Silicon API folder in your terminal, then type node server.js or npm start and hit enter.

$ npm start

You have GET, POST, PUT and DELETE methods for each route. The available routes for /api, are:

  • /users
    • /users/populated
    • /link
  • /posts
  • /likes* Only PUT method

When doing a PUT or DELETE, you'll have to add the ID parameter route (/id) to target a specific user or post. You may also do it with GET.



(Back to the Top)

License

GitHub
See the license for more details.


(Back to the Top)

Contribute

If you have suggestions or want to help with some improvements, you can write me by email.


(Back to the Top)

Credits

All the code was created from scratch by Rod's Freedom.


(Back to the Top)

About

Let your ideas flow like bits through silicon. Watch our video tutorial here ⬇️

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published