Create a NodeJS server using ExpressJS and other NPM modules, capable of hosting the official Mozilla Campus Club website with API endpoints for core functions. Data storage & retrieval should be conducted via the JSON files stored in the /config directory. You are free to create as many JSON files with structures as needed, however limit each endpoint type (ex: /api/v1/members/...) to a single JSON file (ex: /config/members.json).
Refer the tutorial here to install Node and NPM on your desired operating system. NodeJS v6 LTS is recommended.
The latest version of IntelliJ WebStorm is recommended for this project. Proceed to download (free for students) on JetBrains Products for Learning, or obtain a student license. Install your desired IDE only after installing Node and NPM to avoid configuration issues.
- Configure your local machine's SSH keys in your GitHub profile. Follow this tutorial for more information.
- Navigate to a directory on your local machine and execute
git clone git@github.com:Mozilla-Campus-Club-IIT/NodeJS.git
- Enter the the
/NodeJS
directory and executenpm i
to initialize NPM and install the relevant modules
- POST -
/api/v1/members/register
- GET -
/api/v1/members/:id
- GET -
/api/v1/members/auth
(i.e. member login, available only for admin members) - GET -
/api/v1/members/list
- DELETE -
/api/v1/members/:id
- POST -
/api/v1/events/register
- GET -
/api/v1/events/:id
- GET -
/api/v1/events/list
- DELETE -
/api/v1/events/:id
Find instructions for developing the relevant endpoints in the Issues section of this repo.
Use Postman to test the API endpoints.
Refer the Projects section to view the development stages of this application.